pub struct Parsing<'a, T, O, F> { /* private fields */ }Expand description
Parsing state holds a reference of Input.
Implementations§
Source§impl<'a, T, O, F> Parsing<'a, T, O, F>where
F: Future<Output = O> + 'a,
impl<'a, T, O, F> Parsing<'a, T, O, F>where
F: Future<Output = O> + 'a,
Source§impl<'a, T, O, F> Parsing<'a, T, O, F>
impl<'a, T, O, F> Parsing<'a, T, O, F>
Sourcepub fn cursor_mut(&mut self) -> impl DerefMut<Target = Cursor<T>> + '_
pub fn cursor_mut(&mut self) -> impl DerefMut<Target = Cursor<T>> + '_
Get the mutable reference of Cursor. You can add items to the buffer.
Sourcepub fn into_result(self) -> Option<O>
pub fn into_result(self) -> Option<O>
Get the result of the parser. Return Some(_) if the parser is done (= poll() returned true). Return None otherwise.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, O, F> Freeze for Parsing<'a, T, O, F>
impl<'a, T, O, F> !RefUnwindSafe for Parsing<'a, T, O, F>
impl<'a, T, O, F> !Send for Parsing<'a, T, O, F>
impl<'a, T, O, F> !Sync for Parsing<'a, T, O, F>
impl<'a, T, O, F> Unpin for Parsing<'a, T, O, F>
impl<'a, T, O, F> !UnwindSafe for Parsing<'a, T, O, F>
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