Enum regex::dfa::Result[][src]

pub enum Result<T> {
    Match(T),
    NoMatch(usize),
    Quit,
}

The result of running the DFA.

Generally, the result is either a match or not a match, but sometimes the DFA runs too slowly because the cache size is too small. In that case, it gives up with the intent of falling back to the NFA algorithm.

The DFA can also give up if it runs out of room to create new states, or if it sees non-ASCII bytes in the presence of a Unicode word boundary.

Variants

Methods

impl<T> Result<T>
[src]

Returns true if this result corresponds to a match.

Maps the given function onto T and returns the result.

If this isn't a match, then this is a no-op.

Sets the non-match position.

If this isn't a non-match, then this is a no-op.

Trait Implementations

impl<T: Clone> Clone for Result<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Result<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Result<T> where
    T: Send

impl<T> Sync for Result<T> where
    T: Sync