[][src]Trait destream::de::SeqAccess

pub trait SeqAccess: Send {
    type Error: Error;
#[must_use]    pub fn next_element<'life0, 'async_trait, T: FromStream>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; pub fn size_hint(&self) -> Option<usize> { ... } }

Provides a Visitor access to each element of a sequence in the input.

This is a trait that a Decoder passes to a Visitor implementation, which decodes each item in a sequence.

Based on serde::de::SeqAccess.

Associated Types

type Error: Error[src]

The type to return if decoding encounters an error.

Loading content...

Required methods

#[must_use]pub fn next_element<'life0, 'async_trait, T: FromStream>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Returns Ok(Some(value)) for the next value in the sequence, or Ok(None) if there are no more remaining items.

Loading content...

Provided methods

pub fn size_hint(&self) -> Option<usize>[src]

Returns the number of elements remaining in the sequence, if known.

Loading content...

Implementors

Loading content...