Struct cssparser::ParserInput
source · [−]pub struct ParserInput<'i> { /* private fields */ }
Expand description
The owned input for a parser.
Implementations
sourceimpl<'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.
sourcepub fn new_with_line_number_offset(
input: &'i str,
first_line_number: u32
) -> ParserInput<'i>
pub fn new_with_line_number_offset(
input: &'i str,
first_line_number: u32
) -> ParserInput<'i>
Create a new input for a parser. Line numbers in locations are offset by the given value.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more