Enum text_template::Piece[][src]

pub enum Piece<'a> {
    Text(&'a str),
    Placeholder {
        name: &'a str,
        before: &'a str,
        after: &'a str,
    },
}

A piece of template, either text or a placeholder to be substituted.

Variants

Fields of Placeholder

Trait Implementations

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 !=.

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Piece<'a>

impl<'a> Sync for Piece<'a>