pub struct Bytes<F> where
    F: Fn(u8) -> bool
{ /* private fields */ }
Expand description

Searches a slice for a set of bytes. Up to 16 bytes may be used.

Implementations

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.

Searches the slice for the first matching byte in the set.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.