Enum fmt_macros::Piece [] [src]

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

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 str)
Unstable (rustc_private)

A literal string which should directly be emitted

NextArgument(Argument<'a>)
Unstable (rustc_private)

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

Trait Implementations

Derived Implementations

impl<'a> PartialEq for Piece<'a>
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl<'a> Clone for Piece<'a>
[src]

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<'a> Copy for Piece<'a>
[src]