Enum fmt_macros::PositionUnstable [-] [+] [src]

pub enum Position<'a> {
    ArgumentNext,
    ArgumentIs(usize),
    ArgumentNamed(&'a str),
}

Enum describing where an argument for a format can be located.

Variants

ArgumentNext

The argument will be in the next position. This is the default.

ArgumentIs

The argument is located at a specific index.

ArgumentNamed

The argument has a name.

Trait Implementations

Derived Implementations

impl<'a> PartialEq for Position<'a>

fn eq(&self, __arg_0: &Position<'a>) -> bool

fn ne(&self, __arg_0: &Position<'a>) -> bool

impl<'a> Clone for Position<'a>

fn clone(&self) -> Position<'a>

fn clone_from(&mut self, source: &Self)

impl<'a> Copy for Position<'a>