pub enum SmartMatcher {
Str(StrMatcher),
Bytes(BytesMatcher),
}Expand description
Chooses the appropriate matcher based on whether input is valid UTF-8
Variants§
Str(StrMatcher)
Bytes(BytesMatcher)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmartMatcher
impl RefUnwindSafe for SmartMatcher
impl Send for SmartMatcher
impl Sync for SmartMatcher
impl Unpin for SmartMatcher
impl UnsafeUnpin for SmartMatcher
impl UnwindSafe for SmartMatcher
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