Skip to main content

find

Function find 

Source
pub fn find(hay: &[u8], needle: &[u8]) -> Option<usize>
Expand description

Find the first occurrence of needle in hay (simple, used for marker scans in headers only).