pub struct CollectMap<'a, W> { /* private fields */ }Expand description
CBOR RFC-7049 specifies a canonical sort order, where keys are sorted by length first. This was later revised with RFC-8949, but we need to stick to the original order to stay compatible with existing data. We first serialize each map entry (the key and the value) into a buffer and then sort those buffers. Once sorted they are written to the actual output.
Trait Implementations§
Source§impl<W> SerializeMap for CollectMap<'_, W>where
W: Write,
impl<W> SerializeMap for CollectMap<'_, W>where
W: Write,
Source§impl<W> SerializeStruct for CollectMap<'_, W>where
W: Write,
impl<W> SerializeStruct for CollectMap<'_, W>where
W: Write,
Source§impl<W> SerializeStructVariant for CollectMap<'_, W>where
W: Write,
impl<W> SerializeStructVariant for CollectMap<'_, W>where
W: Write,
Auto Trait Implementations§
impl<'a, W> Freeze for CollectMap<'a, W>
impl<'a, W> RefUnwindSafe for CollectMap<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for CollectMap<'a, W>where
W: Send,
impl<'a, W> Sync for CollectMap<'a, W>where
W: Sync,
impl<'a, W> Unpin for CollectMap<'a, W>
impl<'a, W> !UnwindSafe for CollectMap<'a, W>
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