pub struct PatternDb;Expand description
Pattern database using regex crate (fallback).
Implementations§
Source§impl PatternDb
impl PatternDb
Sourcepub fn with_builtins() -> Result<Self, Infallible>
pub fn with_builtins() -> Result<Self, Infallible>
Create a new pattern database.
Sourcepub fn scan(&self, input: &str) -> MatchResult
pub fn scan(&self, input: &str) -> MatchResult
Scan input for pattern matches.
Sourcepub fn scan_batch(&self, inputs: &[&str]) -> Vec<MatchResult>
pub fn scan_batch(&self, inputs: &[&str]) -> Vec<MatchResult>
Scan multiple inputs in batch.
Auto Trait Implementations§
impl Freeze for PatternDb
impl RefUnwindSafe for PatternDb
impl Send for PatternDb
impl Sync for PatternDb
impl Unpin for PatternDb
impl UnsafeUnpin for PatternDb
impl UnwindSafe for PatternDb
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