pub struct AsciiChars<F>(_) 
where
    F: Fn(u8) -> bool
;
Expand description

Searches a string for a set of ASCII characters. Up to 16 characters may be used.

Implementations

Manual constructor; prefer using ascii_chars! instead.

Provide an array of ASCII 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 characters as in the array.

Panics
  • If you provide a non-ASCII byte.

Searches the string for the first matching ASCII 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.