Enum memchr::memmem::searcher::SearcherRevKind
source · enum SearcherRevKind {
Empty,
OneByte {
needle: u8,
},
TwoWay {
finder: FinderRev,
},
}
Expand description
The kind of the reverse searcher.
For the reverse case, we don’t do any SIMD acceleration or prefilters. There is no specific technical reason why we don’t, but rather don’t do it because it’s not clear it’s worth the extra code to do so. If you have a use case for it, please file an issue.
We also don’t do the union trick as we do with the forward case and prefilters. Basically for the same reason we don’t have prefilters or vector algorithms for reverse searching: it’s not clear it’s worth doing. Please file an issue if you have a compelling use case for fast reverse substring search.
Variants§
Trait Implementations§
source§impl Clone for SearcherRevKind
impl Clone for SearcherRevKind
source§fn clone(&self) -> SearcherRevKind
fn clone(&self) -> SearcherRevKind
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 SearcherRevKind
impl RefUnwindSafe for SearcherRevKind
impl Send for SearcherRevKind
impl Sync for SearcherRevKind
impl Unpin for SearcherRevKind
impl UnwindSafe for SearcherRevKind
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