pub enum Count<'a> {
CountIs(usize),
CountIsName(&'a str, InnerSpan),
CountIsParam(usize),
CountIsStar(usize),
CountImplied,
}
Expand description
A count is used for the precision and width parameters of an integer, and can reference either an argument or a literal integer.
Variants§
CountIs(usize)
The count is specified explicitly.
CountIsName(&'a str, InnerSpan)
The count is specified by the argument with the given name.
CountIsParam(usize)
The count is specified by the argument at the given index.
CountIsStar(usize)
The count is specified by a star (like in {:.*}
) that refers to the argument at the given index.
CountImplied
The count is implied and cannot be explicitly specified.
Trait Implementations§
impl<'a> Copy for Count<'a>
impl<'a> StructuralPartialEq for Count<'a>
Auto Trait Implementations§
impl<'a> Freeze for Count<'a>
impl<'a> RefUnwindSafe for Count<'a>
impl<'a> Send for Count<'a>
impl<'a> Sync for Count<'a>
impl<'a> Unpin for Count<'a>
impl<'a> UnwindSafe for Count<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more