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
End of format string
Escape(u8)
Escaped character, {
or }
Text(&'a bstr)
Plain text component
Field
Field component without a name {}
Name(&'a bstr)
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]
fn clone(&self) -> Item<'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