jiff::fmt::strtime::parse

Function parse_weekday_abbrev

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

Like parse_choice, but specialized for weekday abbreviation.

This exists because weekday abbreviations are common and we can take advantage of the fact that they are all exactly three bytes.