Enum syntex_fmt_macros::Piece [] [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

A literal string which should directly be emitted

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.