Trait destream::en::EncodeSeq[][src]

pub trait EncodeSeq<'en> {
    type Ok: Stream + Send + Unpin + 'en;
    type Error: Error + Send + Unpin + 'en;
    fn encode_element<V: IntoStream<'en> + 'en>(
        &mut self,
        value: V
    ) -> Result<(), Self::Error>;
fn end(self) -> Result<Self::Ok, Self::Error>; }
Expand description

Returned from Encoder::encode_seq.

Associated Types

Must match the Ok type of the parent Encoder.

Must match the Error type of the parent Encoder.

Required methods

Encode the next element in the sequence.

Finish encoding the sequence.

Implementors