Function core::slice::memchr::memchr

const: 1.65.0 · source ·
pub const fn memchr<const host: bool = true>(
    x: u8,
    text: &[u8]
) -> Option<usize>
🔬This is a nightly-only experimental API. (slice_internals)
Expand description

Returns the first index matching the byte x in text.