Struct aho_corasick::Match [−][src]
Records a match in the search text.
Fields
pati: usize
The pattern index.
This corresponds to the ordering in which the matched pattern was
added to the automaton, starting at 0.
start: usize
The starting byte offset of the match in the search text.
end: usize
The ending byte offset of the match in the search text.
(This can be re-captiulated with pati and adding the pattern's
length to start, but it is convenient to have it here.)
Trait Implementations
impl Copy for Match[src]
impl Copy for Matchimpl Clone for Match[src]
impl Clone for Matchfn clone(&self) -> Match[src]
fn clone(&self) -> MatchReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Match[src]
impl Debug for Matchfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for Match[src]
impl Hash for Matchfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for Match[src]
impl PartialEq for Matchfn eq(&self, other: &Match) -> bool[src]
fn eq(&self, other: &Match) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Match) -> bool[src]
fn ne(&self, other: &Match) -> boolThis method tests for !=.
impl Eq for Match[src]
impl Eq for Match