pub struct TwoWaySearcher<'a> { /* private fields */ }
Expand description
Searches for a substring using the “two-way” algorithm of Crochemore and Perrin, D.
This implementation is basically copied from rust’s standard library.
Implementations§
Source§impl<'a> TwoWaySearcher<'a>
impl<'a> TwoWaySearcher<'a>
Sourcepub fn new<'b>(needle: &'b [u8]) -> TwoWaySearcher<'b>
pub fn new<'b>(needle: &'b [u8]) -> TwoWaySearcher<'b>
Creates a new TwoWaySearcher
that can be used to search for needle
.
Trait Implementations§
Source§impl<'a> Clone for TwoWaySearcher<'a>
impl<'a> Clone for TwoWaySearcher<'a>
Source§fn clone(&self) -> TwoWaySearcher<'a>
fn clone(&self) -> TwoWaySearcher<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for TwoWaySearcher<'a>
impl<'a> Debug for TwoWaySearcher<'a>
Auto Trait Implementations§
impl<'a> Freeze for TwoWaySearcher<'a>
impl<'a> RefUnwindSafe for TwoWaySearcher<'a>
impl<'a> Send for TwoWaySearcher<'a>
impl<'a> Sync for TwoWaySearcher<'a>
impl<'a> Unpin for TwoWaySearcher<'a>
impl<'a> UnwindSafe for TwoWaySearcher<'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