Struct cssparser::ParserInput
source · pub struct ParserInput<'i> { /* private fields */ }
Expand description
The owned input for a parser.
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.
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.