Struct aldrin_core::MapSerializer
source · pub struct MapSerializer<'a, K: SerializeKey + ?Sized> { /* private fields */ }
Implementations§
source§impl<'a, K: SerializeKey + ?Sized> MapSerializer<'a, K>
impl<'a, K: SerializeKey + ?Sized> MapSerializer<'a, K>
pub fn remaining_elements(&self) -> usize
pub fn requires_additional_elements(&self) -> bool
pub fn serialize_element<T: Serialize + ?Sized>( &mut self, key: &K, value: &T ) -> Result<&mut Self, SerializeError>
pub fn finish(self) -> Result<(), SerializeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, K: ?Sized> Freeze for MapSerializer<'a, K>
impl<'a, K: ?Sized> RefUnwindSafe for MapSerializer<'a, K>where
K: RefUnwindSafe,
impl<'a, K: ?Sized> Send for MapSerializer<'a, K>where
K: Send,
impl<'a, K: ?Sized> Sync for MapSerializer<'a, K>where
K: Sync,
impl<'a, K: ?Sized> Unpin for MapSerializer<'a, K>where
K: Unpin,
impl<'a, K> !UnwindSafe for MapSerializer<'a, K>
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