Skip to main content

parse

Function parse 

Source
pub fn parse<P: Profile>(
    s: &str,
    ctx: &Fmt,
) -> Result<(Instant<P>, Precision), ParseError>
Expand description

Parse either text form, returning the value and its stated precision.

Rule T: a truncated notation never yields a bare tick-precision instant. The returned Precision is the tier of the last group, and parse_window turns it into the interval the notation actually denotes.