Function offset_in

Source
fn offset_in(ptr: *const u8, s: &str) -> Option<usize>
Expand description

If ptr is within s, return its byte offset.