Struct cpp_synom::ParseState
[−]
[src]
pub struct ParseState<'a> { /* fields omitted */ }
A wrapper around a &'a str which keeps track of the current index into the source string. Provides a mechanism for determining source locations during the parse.
Methods
impl<'a> ParseState<'a>
[src]
fn new(s: &'a str) -> ParseState<'a>
fn rest(self) -> &'a str
fn is_empty(self) -> bool
fn len(self) -> usize
fn starts_with(self, p: &str) -> bool
fn until(self, i: usize) -> &'a str
fn char_indices(self) -> CharIndices<'a>
fn chars(self) -> Chars<'a>
fn bytes(self) -> Bytes<'a>
fn advance(self, i: usize) -> ParseState<'a>
fn finish(self) -> ParseState<'a>
fn idx(self) -> usize
Trait Implementations
impl<'a> Debug for ParseState<'a>
[src]
impl<'a> Copy for ParseState<'a>
[src]
impl<'a> Clone for ParseState<'a>
[src]
fn clone(&self) -> ParseState<'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