pub enum Argument {
None,
Positional(usize),
Named(String),
}
Expand description
An argument in a core::fmt style alignment spec.
i.e. the var_name in {var_name:#0x}
Variants§
None
No argument
Positional(usize)
A positional argument (i.e. {0}
).
Named(String)
A named argument (i.e. {var_name}
).
Trait Implementations§
source§impl PartialEq for Argument
impl PartialEq for Argument
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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