pub struct StreamParser<P, S> { /* private fields */ }
Implementations§
Source§impl<P, S> StreamParser<P, S>
impl<P, S> StreamParser<P, S>
pub fn new(parser: P, source: S) -> Self
pub fn advance(&mut self) -> Result<(), S::Error>where
S: Advance,
pub fn advance_async(
&mut self,
) -> impl Future<Output = Result<(), S::Error>> + '_where
S: AdvanceAsync + Unpin,
pub fn get( &mut self, ) -> Result<Option<Streaming<<P as Parse<'_>>::Output>>, <P as Parse<'_>>::Error>
Auto Trait Implementations§
impl<P, S> Freeze for StreamParser<P, S>
impl<P, S> RefUnwindSafe for StreamParser<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for StreamParser<P, S>
impl<P, S> Sync for StreamParser<P, S>
impl<P, S> Unpin for StreamParser<P, S>
impl<P, S> UnwindSafe for StreamParser<P, S>where
P: UnwindSafe,
S: 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