pub struct PatternMatcherFactory;Expand description
Factory for creating the most appropriate pattern matcher based on the pattern and available hardware capabilities.
Implementations§
Source§impl PatternMatcherFactory
impl PatternMatcherFactory
Sourcepub fn create(pattern: &str) -> Box<dyn PatternMatcher + Send + Sync>
pub fn create(pattern: &str) -> Box<dyn PatternMatcher + Send + Sync>
Creates the most optimized pattern matcher for the given pattern.
This will automatically select between:
- SIMD-accelerated literal matcher for simple patterns (when hardware supports it)
- Standard literal matcher for simple patterns (fallback)
- Regex matcher for complex patterns
Auto Trait Implementations§
impl Freeze for PatternMatcherFactory
impl RefUnwindSafe for PatternMatcherFactory
impl Send for PatternMatcherFactory
impl Sync for PatternMatcherFactory
impl Unpin for PatternMatcherFactory
impl UnsafeUnpin for PatternMatcherFactory
impl UnwindSafe for PatternMatcherFactory
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