Document core::fmt::rt::v1::Count

This commit is contained in:
Solomon Ucko 2020-07-19 11:10:03 -04:00 committed by sollyucko
parent 48036804d2
commit a462e7c1d0

View File

@ -33,9 +33,13 @@ pub enum Alignment {
Unknown,
}
/// Used by [width](https://doc.rust-lang.org/std/fmt/#width) and [precision](https://doc.rust-lang.org/std/fmt/#precision) specifiers.
#[derive(Copy, Clone)]
pub enum Count {
/// Specified with a literal number, stores the value
Is(usize),
/// Specified using `$` and `*` syntaxes, stores the index into `args`
Param(usize),
/// Not specified
Implied,
}