pub fn split(line: &[u8]) -> (&[u8], Option<&[u8]>)Expand description
Split a first line into its content and its capability list.
Returns (content, Some(capabilities)) when a NUL is present and
(line, None) when it is not. A line with a NUL and nothing after it has
an empty capability list, not an absent one, which is why the second
element is Option<&[u8]> rather than a slice that could be empty for two
different reasons.