pub struct Input<T>(/* private fields */);Expand description
You need to wrap Cursor with this to parse.
Implementations§
Source§impl<T> Input<T>
impl<T> Input<T>
Sourcepub fn cursor_mut(&mut self) -> impl DerefMut<Target = Cursor<T>> + '_
pub fn cursor_mut(&mut self) -> impl DerefMut<Target = Cursor<T>> + '_
Get a mutable reference of Cursor.
Sourcepub fn into_inner(self) -> Cursor<T>
pub fn into_inner(self) -> Cursor<T>
Get the inner Cursor.
Sourcepub fn start_parsing<'a, O, F, P>(
&'a mut self,
parser: P,
) -> Parsing<'a, T, O, F>
pub fn start_parsing<'a, O, F, P>( &'a mut self, parser: P, ) -> Parsing<'a, T, O, F>
Start parsing with a parser.
Just a wrapper of Parsing::new.
Sourcepub fn into_parsing<'a, O, F, P>(self, parser: P) -> ParsingInput<T, O, F>
pub fn into_parsing<'a, O, F, P>(self, parser: P) -> ParsingInput<T, O, F>
Start parsing with a parser.
Just a wrapper of ParsingInput::new(Box::new(self), parser).
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Input<T>
impl<T> !RefUnwindSafe for Input<T>
impl<T> Send for Input<T>where
T: Send,
impl<T> !Sync for Input<T>
impl<T> Unpin for Input<T>where
T: Unpin,
impl<T> UnwindSafe for Input<T>where
T: UnwindSafe,
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