Struct teddy::Match [] [src]

pub struct Match {
    pub pat: usize,
    pub start: usize,
    pub end: usize,
}

Match reports match information.

Fields

The index of the pattern that matched. The index is in correspondence with the order of the patterns given at construction.

The start byte offset of the match.

The end byte offset of the match. This is always start + pat.len().

Trait Implementations

impl Debug for Match
[src]

Formats the value using the given formatter.

impl Clone for Match
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. 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 !=.