A read-only snapshot of match results.
Constructors
new(items :
Boxcar(
T), matches :
Array(
Match), pattern :
MultiPattern, item_count :
UInt32)
SourceInstance methods
get_item(index :
UInt32) :
Item(
T) |
Nil Returns a reference to the item at the given index.
Sourceget_matched_item(n :
UInt32) :
Item(
T) |
Nil Returns the item corresponding to the nth match.
Sourceitem_count
Returns the total number of items in the snapshot.
Sourcematched_item_count
Returns the number of items that matched the pattern.
SourceReturns an iterator over matched items in the given range.
Sourcematches
Returns the matches in this snapshot.
Sourcepattern
Returns the pattern which items were matched against.
Source