From a462e7c1d08ba0babd18a4a71d1833839c3cd52d Mon Sep 17 00:00:00 2001 From: Solomon Ucko Date: Sun, 19 Jul 2020 11:10:03 -0400 Subject: [PATCH] Document `core::fmt::rt::v1::Count` --- src/libcore/fmt/rt/v1.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/fmt/rt/v1.rs b/src/libcore/fmt/rt/v1.rs index f6460470bfe18..37202b2774dc6 100644 --- a/src/libcore/fmt/rt/v1.rs +++ b/src/libcore/fmt/rt/v1.rs @@ -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, }