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.
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