pub struct ShiftOrInterpreter<'a> { /* private fields */ }Expand description
Interpreter for Shift-Or matching.
This provides the matching logic for the Shift-Or algorithm, operating on a pre-compiled ShiftOr data structure.
Implementations§
Source§impl<'a> ShiftOrInterpreter<'a>
impl<'a> ShiftOrInterpreter<'a>
Sourcepub fn is_match(&self, input: &[u8]) -> bool
pub fn is_match(&self, input: &[u8]) -> bool
Returns true if the pattern matches anywhere in the input.
Sourcepub fn find(&self, input: &[u8]) -> Option<(usize, usize)>
pub fn find(&self, input: &[u8]) -> Option<(usize, usize)>
Finds the first match, returning (start, end).
Auto Trait Implementations§
impl<'a> Freeze for ShiftOrInterpreter<'a>
impl<'a> RefUnwindSafe for ShiftOrInterpreter<'a>
impl<'a> Send for ShiftOrInterpreter<'a>
impl<'a> Sync for ShiftOrInterpreter<'a>
impl<'a> Unpin for ShiftOrInterpreter<'a>
impl<'a> UnwindSafe for ShiftOrInterpreter<'a>
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