pub struct SimdPatternMatcher { /* private fields */ }Expand description
SIMD-accelerated pattern matching for schema operations
Implementations§
Source§impl SimdPatternMatcher
impl SimdPatternMatcher
Sourcepub fn add_pattern(&mut self, pattern: &str)
pub fn add_pattern(&mut self, pattern: &str)
Add a pattern to match against
Sourcepub fn matches_any(&self, text: &[u8]) -> bool
pub fn matches_any(&self, text: &[u8]) -> bool
Check if text matches any of the compiled patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdPatternMatcher
impl RefUnwindSafe for SimdPatternMatcher
impl Send for SimdPatternMatcher
impl Sync for SimdPatternMatcher
impl Unpin for SimdPatternMatcher
impl UnwindSafe for SimdPatternMatcher
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more