pub enum ArgName {
Index(usize),
Name(&'static str),
}Expand description
How a format string refers to an argument.
Variants§
Index(usize)
The n-th positional argument
Name(&'static str)
A named argument, or a variable captured from scope
Trait Implementations§
impl Copy for ArgName
impl Eq for ArgName
impl StructuralPartialEq for ArgName
Auto Trait Implementations§
impl Freeze for ArgName
impl RefUnwindSafe for ArgName
impl Send for ArgName
impl Sync for ArgName
impl Unpin for ArgName
impl UnsafeUnpin for ArgName
impl UnwindSafe for ArgName
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