Function next_component

Source
fn next_component(data: &[u8]) -> (Option<&[u8]>, &[u8])
Expand description

Find the longest prefix satisfying allowed_in_quark_name(). This returns (Some(prefix), remaining) if a prefix is found, else (None, data).