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
Required methods
fn encode_element<V: IntoStream<'en> + 'en>(
&mut self,
value: V
) -> Result<(), Self::Error>
fn encode_element<V: IntoStream<'en> + 'en>(
&mut self,
value: V
) -> Result<(), Self::Error>
Encode the next element in the sequence.