jiff::fmt::strtime::parse

Function parse_required_sign

Source
fn parse_required_sign<'i>(
    input: &'i [u8],
) -> Result<(ri8<-1, 1>, &'i [u8]), Error>
Expand description

Parses an optional sign from the beginning of the input. If one isn’t found, then the sign returned is positive.

This also returns the remaining unparsed input.