pub struct PatternSet { /* private fields */ }Expand description
A compiled set of patterns ready for scanning.
Implementations§
Source§impl PatternSet
impl PatternSet
Sourcepub fn builder() -> PatternSetBuilder
pub fn builder() -> PatternSetBuilder
Start building a new pattern set.
Sourcepub fn scan_str(&self, input: &str) -> Vec<MatchResult>
pub fn scan_str(&self, input: &str) -> Vec<MatchResult>
Scan a string for all matching patterns.
Trait Implementations§
Source§impl Scanner for PatternSet
impl Scanner for PatternSet
Auto Trait Implementations§
impl Freeze for PatternSet
impl RefUnwindSafe for PatternSet
impl Send for PatternSet
impl Sync for PatternSet
impl Unpin for PatternSet
impl UnsafeUnpin for PatternSet
impl UnwindSafe for PatternSet
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