Struct aho_corasick::Match [] [src]

pub struct Match {
    pub pati: usize,
    pub start: usize,
    pub end: usize,
}
[]

Records a match in the search text.

Fields

[]

The pattern index.

This corresponds to the ordering in which the matched pattern was added to the automaton, starting at 0.

[]

The starting byte offset of the match in the search text.

[]

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 Clone for Match
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Debug for Match
[src]

[src]
[]

Formats the value using the given formatter.

impl Hash for Match
[src]

[src]
[]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]
[]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Match
[src]

[src]
[]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]
[]

This method tests for !=.

impl Eq for Match
[src]