Struct cssparser::ParserState [−][src]
pub struct ParserState { /* fields omitted */ }A capture of the internal state of a Parser (including the position within the input),
obtained from the Parser::position method.
Can be used with the Parser::reset method to restore that state.
Should only be used with the Parser instance it came from.
Methods
impl ParserState[src]
impl ParserStatepub fn position(&self) -> SourcePosition[src]
pub fn position(&self) -> SourcePositionThe position from the start of the input, counted in UTF-8 bytes.
pub fn source_location(&self) -> SourceLocation[src]
pub fn source_location(&self) -> SourceLocationThe line number and column number
Trait Implementations
impl Debug for ParserState[src]
impl Debug for ParserStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ParserState[src]
impl Clone for ParserStatefn clone(&self) -> ParserState[src]
fn clone(&self) -> ParserStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for ParserState
impl Send for ParserStateimpl Sync for ParserState
impl Sync for ParserState