Union memchr::memmem::searcher::SearcherKind
source · union SearcherKind {
empty: (),
one_byte: u8,
two_way: Finder,
two_way_with_prefilter: TwoWayWithPrefilter,
sse2: Finder,
avx2: Finder,
}
Expand description
A union indicating one of several possible substring search implementations that are in active use.
This union should only be read by one of the functions prefixed with
searcher_kind_
. Namely, the correct function is meant to be paired with
the union by the caller, such that the function always reads from the
designated union field.
Fields§
§empty: ()
§one_byte: u8
§two_way: Finder
§two_way_with_prefilter: TwoWayWithPrefilter
§sse2: Finder
§avx2: Finder
Trait Implementations§
source§impl Clone for SearcherKind
impl Clone for SearcherKind
source§fn clone(&self) -> SearcherKind
fn clone(&self) -> SearcherKind
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 moreimpl Copy for SearcherKind
Auto Trait Implementations§
impl Freeze for SearcherKind
impl RefUnwindSafe for SearcherKind
impl Send for SearcherKind
impl Sync for SearcherKind
impl Unpin for SearcherKind
impl UnwindSafe for SearcherKind
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