Struct tbon::en::MapEncoder
source · pub struct MapEncoder<'en> { /* private fields */ }
Expand description
An Encoder
for a map of keys to values
Trait Implementations§
source§impl<'en> EncodeMap<'en> for MapEncoder<'en>
impl<'en> EncodeMap<'en> for MapEncoder<'en>
§type Ok = Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + Unpin + 'en>>
type Ok = Pin<Box<dyn Stream<Item = Result<Bytes, Error>> + Send + Unpin + 'en>>
Must match the
Ok
type of the parent Encoder
.source§fn encode_key<T: IntoStream<'en> + 'en>(
&mut self,
key: T
) -> Result<(), Self::Error>
fn encode_key<T: IntoStream<'en> + 'en>( &mut self, key: T ) -> Result<(), Self::Error>
Encode a map key. Read more
source§fn encode_value<T: IntoStream<'en> + 'en>(
&mut self,
value: T
) -> Result<(), Self::Error>
fn encode_value<T: IntoStream<'en> + 'en>( &mut self, value: T ) -> Result<(), Self::Error>
Encode a map value. Read more
source§fn encode_entry<K, V>(&mut self, key: K, value: V) -> Result<(), Self::Error>where
K: IntoStream<'en> + 'en,
V: IntoStream<'en> + 'en,
fn encode_entry<K, V>(&mut self, key: K, value: V) -> Result<(), Self::Error>where
K: IntoStream<'en> + 'en,
V: IntoStream<'en> + 'en,
Encode a map entry consisting of a key and a value. Read more
Auto Trait Implementations§
impl<'en> !RefUnwindSafe for MapEncoder<'en>
impl<'en> Send for MapEncoder<'en>
impl<'en> !Sync for MapEncoder<'en>
impl<'en> Unpin for MapEncoder<'en>
impl<'en> !UnwindSafe for MapEncoder<'en>
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