Trait from_regex::FromRegex[][src]

pub trait FromRegex: Sized {
    fn from_regex(s: &str) -> Option<Self>;
fn match_locations(s: &str) -> SegmentMap<usize, Self>; fn matches(s: &str) -> Vec<Self> { ... } }
Expand description

Try to construct an instance of this type from a string

Required methods

Try to construct an instance of this type from a string

Search through a string and return all instances of this type matched, As well as the ranges at which they occur.

Provided methods

Search through a string and return all instances of this type matched

Implementors