Struct cssparser::parser::ParserInput
source · pub struct ParserInput<'i> {
tokenizer: Tokenizer<'i>,
cached_token: Option<CachedToken<'i>>,
}
Expand description
The owned input for a parser.
Fields§
§tokenizer: Tokenizer<'i>
§cached_token: Option<CachedToken<'i>>
Implementations§
source§impl<'i> ParserInput<'i>
impl<'i> ParserInput<'i>
sourcepub fn new(input: &'i str) -> ParserInput<'i>
pub fn new(input: &'i str) -> ParserInput<'i>
Create a new input for a parser.
fn cached_token_ref(&self) -> &Token<'i>
Auto Trait Implementations§
impl<'i> Freeze for ParserInput<'i>
impl<'i> RefUnwindSafe for ParserInput<'i>
impl<'i> !Send for ParserInput<'i>
impl<'i> !Sync for ParserInput<'i>
impl<'i> Unpin for ParserInput<'i>
impl<'i> UnwindSafe for ParserInput<'i>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more