pub struct Pattern { /* private fields */ }Expand description
A compiled pattern.
Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn find_iter(&self, text: &str) -> Vec<(usize, usize)>
pub fn find_iter(&self, text: &str) -> Vec<(usize, usize)>
Every non-overlapping match’s span, left to right.
Sourcepub fn captures_iter(&self, text: &str) -> Vec<Captures>
pub fn captures_iter(&self, text: &str) -> Vec<Captures>
Every non-overlapping match, left to right.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Pattern
impl Freeze for Pattern
impl Move for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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