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

pub enum Piece<'a> {
    String(&'a str),
    NextArgument(Argument<'a>),
}

A piece is a portion of the format string which represents the next part to emit. These are emitted as a stream by the Parser class.

Variants

String

A literal string which should directly be emitted

NextArgument

This describes that formatting should process the next argument (as specified inside) for emission.

Trait Implementations

Derived Implementations

impl<'a> PartialEq for Piece<'a>

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

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

impl<'a> Clone for Piece<'a>

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

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

impl<'a> Copy for Piece<'a>