Struct memchr::memmem::searcher::SearcherRev
source · pub(crate) struct SearcherRev {
kind: SearcherRevKind,
rabinkarp: FinderRev,
}
Expand description
A reverse substring searcher.
Fields§
§kind: SearcherRevKind
§rabinkarp: FinderRev
Implementations§
source§impl SearcherRev
impl SearcherRev
sourcepub(crate) fn new(needle: &[u8]) -> SearcherRev
pub(crate) fn new(needle: &[u8]) -> SearcherRev
Creates a new searcher for finding occurrences of the given needle in reverse. That is, it reports the last (instead of the first) occurrence of a needle in a haystack.
Trait Implementations§
source§impl Clone for SearcherRev
impl Clone for SearcherRev
source§fn clone(&self) -> SearcherRev
fn clone(&self) -> SearcherRev
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 moreAuto Trait Implementations§
impl Freeze for SearcherRev
impl RefUnwindSafe for SearcherRev
impl Send for SearcherRev
impl Sync for SearcherRev
impl Unpin for SearcherRev
impl UnwindSafe for SearcherRev
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)