jiff::util::parse

Function split

Source
pub(crate) fn split(input: &[u8], at: usize) -> Option<(&[u8], &[u8])>
Expand description

Splits the given input into two slices at the given position.

If the position is greater than the length of the slice given, then this returns None.