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]
pub fn position(&self) -> SourcePosition
[src]
The position from the start of the input, counted in UTF-8 bytes.
pub fn source_location(&self) -> SourceLocation
[src]
The line number and column number
Trait Implementations
impl Debug for ParserState
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ParserState
[src]
fn clone(&self) -> ParserState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more