pub struct Regex {
pub route: Route,
}
Fields§
§route: Route
Implementations§
Source§impl Regex
impl Regex
pub fn new(pattern: &str) -> Result<Self, AnreError>
pub fn from_anre(expression: &str) -> Result<Self, AnreError>
pub fn find<'a, 'b>(&'a self, text: &'b str) -> Option<Match<'a, 'b>>
pub fn find_iter<'a, 'b>(&'a self, text: &'b str) -> Matches<'a, 'b> ⓘ
pub fn captures<'a, 'b>(&'a self, text: &'b str) -> Option<Captures<'a, 'b>>
pub fn captures_iter<'a, 'b>(&'a self, text: &'b str) -> CaptureMatches<'a, 'b> ⓘ
pub fn is_match(&self, text: &str) -> bool
Auto Trait Implementations§
impl Freeze for Regex
impl RefUnwindSafe for Regex
impl Send for Regex
impl Sync for Regex
impl Unpin for Regex
impl UnwindSafe for Regex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more