pub enum Count<'input> {
CountIs(u16),
CountIsName(&'input str, Range<usize>),
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(u16)
The count is specified explicitly.
CountIsName(&'input str, Range<usize>)
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<'input> StructuralPartialEq for Count<'input>
Auto Trait Implementations§
impl<'input> Freeze for Count<'input>
impl<'input> RefUnwindSafe for Count<'input>
impl<'input> Send for Count<'input>
impl<'input> Sync for Count<'input>
impl<'input> Unpin for Count<'input>
impl<'input> UnwindSafe for Count<'input>
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