Struct bstring::bfmt::Parser
[−]
[src]
pub struct Parser<'a> { /* fields omitted */ }
Parses a &bstr
format string into a series of Item
components.
Methods
impl<'a> Parser<'a>
[src]
fn new(fmt: &bstr) -> Parser
Creates a new parser for the given format string.
fn next(&mut self) -> Result<Item<'a>, ParseError>
Returns the next item of the format string.
If an error is encountered, it is returned.
When the end of the format string is reached,
Ok(Item::End)
is returned.
Trait Implementations
impl<'a> Clone for Parser<'a>
[src]
fn clone(&self) -> Parser<'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