Skip to main content

split_sign

Function split_sign 

Source
fn split_sign(bytes: &[u8]) -> (bool, &[u8])
Expand description

Splits an optional leading sign from bytes, returning whether it is - and the bytes that follow it.