Skip to main content

pair

Function pair 

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

Splits a key or value into its first two records and whatever follows them, as a release build reads a pair.

With no separator the second record is empty, and the rest is None unless a separator ends the second record.