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
fn from_regex(s: &str) -> Option<Self>
fn from_regex(s: &str) -> Option<Self>
Try to construct an instance of this type from a string
fn match_locations(s: &str) -> SegmentMap<usize, Self>
fn match_locations(s: &str) -> SegmentMap<usize, Self>
Search through a string and return all instances of this type matched, As well as the ranges at which they occur.