Skip to main content

find

Function find 

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

First offset of needle in haystack, or None when needle is empty.