pub trait CompiledRegex<I> {
    fn is_match(&self, input: &[I]) -> bool;
    fn find(&self, input: &'t [I]) -> Option<Match<'t, I>>;
    fn captures(&self, input: &'t [I]) -> Option<Captures<'t, I>>;

    fn is_full_match(&self, input: &[I]) -> bool { ... }
}

Required Methods

Returns true if and only if there is a match for the regex in the slice given.

Returns the start and end range of the leftmost-first match in slice. If no match exists, then None is returned.

Returns the capture groups corresponding to the leftmost-first match in text. Capture group 0 always corresponds to the entire match. If no match is found, then None is returned.

Provided Methods

Returns true if and only if match the entire input slice.

Implementors