[][src]Struct streamparser::StreamParser

pub struct StreamParser<P, S> { /* fields omitted */ }

Implementations

impl<P, S> StreamParser<P, S>[src]

pub fn new(parser: P, source: S) -> Self[src]

pub fn advance(&mut self) -> Result<(), S::Error> where
    S: Advance
[src]

pub fn advance_async(
    &mut self
) -> impl Future<Output = Result<(), S::Error>> + '_ where
    S: AdvanceAsync + Unpin
[src]

pub fn get(
    &mut self
) -> Result<Option<Streaming<<P as Parse>::Output>>, <P as Parse>::Error> where
    S: Buffer,
    P: Parse<'i, Input = &'i S::Output>, 
[src]

Auto Trait Implementations

impl<P, S> RefUnwindSafe for StreamParser<P, S> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

impl<P, S> Send for StreamParser<P, S> where
    P: Send,
    S: Send

impl<P, S> Sync for StreamParser<P, S> where
    P: Sync,
    S: Sync

impl<P, S> Unpin for StreamParser<P, S> where
    P: Unpin,
    S: Unpin

impl<P, S> UnwindSafe for StreamParser<P, S> where
    P: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.