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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Match
[src]

Formats the value using the given formatter.

impl Hash for Match
[src]

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

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

impl PartialEq for Match
[src]

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

This method tests for !=.

impl Eq for Match
[src]