Function core::slice::memchr::memchr [−][src]
pub fn memchr(x: u8, text: &[u8]) -> Option<usize>🔬 This is a nightly-only experimental API. (slice_internals)
exposed from core to be reused in std; use the memchr crate
Expand description
返回与 text 中的字节 x 匹配的第一个索引。