Enum bstring::bfmt::Item [] [src]

pub enum Item<'a> {
    End,
    Escape(u8),
    Text(&'a bstr),
    Field,
    Name(&'a bstr),
}

Represents a section of a parsed format string.

Variants

End of format string

Escaped character, { or }

Plain text component

Field component without a name {}

Field component with name or index, e.g. {0} or {foo}

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<'a> Eq for Item<'a>
[src]

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

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

This method tests for !=.