Struct teddy::Match
[−]
[src]
pub struct Match { pub pat: usize, pub start: usize, pub end: usize, }
Match reports match information.
Fields
pat: usize
The index of the pattern that matched. The index is in correspondence with the order of the patterns given at construction.
start: usize
The start byte offset of the match.
end: usize
The end byte offset of the match. This is always start + pat.len()
.
Trait Implementations
impl Debug for Match
[src]
impl Clone for Match
[src]
fn clone(&self) -> Match
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more