pub struct Bytes<F>{ /* private fields */ }
Expand description
Searches a slice for a set of bytes. Up to 16 bytes may be used.
Implementations§
Source§impl<F> Bytes<F>
impl<F> Bytes<F>
Sourcepub fn new(bytes: [u8; 16], len: i32, fallback: F) -> Self
pub fn new(bytes: [u8; 16], len: i32, fallback: F) -> Self
Manual constructor; prefer using bytes!
instead.
Provide an array of bytes to search for, the number of valid bytes provided, and a closure to use when the SIMD intrinsics are not available. The closure must search for the same bytes as in the array.
Auto Trait Implementations§
impl<F> Freeze for Bytes<F>where
F: Freeze,
impl<F> RefUnwindSafe for Bytes<F>where
F: RefUnwindSafe,
impl<F> Send for Bytes<F>where
F: Send,
impl<F> Sync for Bytes<F>where
F: Sync,
impl<F> Unpin for Bytes<F>where
F: Unpin,
impl<F> UnwindSafe for Bytes<F>where
F: UnwindSafe,
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