docs: include rustdoc comments

This commit is contained in:
Erica Marigold 2024-05-12 21:56:46 +05:30
parent a378ed1183
commit e54728b760
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -161,6 +161,7 @@ fn write_local_minus_utc(w: &mut fmt::Formatter, off: FixedOffset, allow_zulu: b
}
}
/// Parses a [Fixed] value and formats it.
fn parse_fixed(
w: &mut fmt::Formatter,
date: Option<&NaiveDate>,
@ -249,6 +250,7 @@ fn parse_fixed(
}
}
/// Parses a [Numeric] value and returns its width and its formattable component.
fn parse_numeric(date: Option<&NaiveDate>, time: Option<&NaiveTime>, off: Option<&(String, FixedOffset)>, spec: &Numeric) -> (usize, Option<i64>) {
use self::Numeric::*;