struct SerializeSeqElement<M> {
delegate: M,
is_human_readable: bool,
}Expand description
Serialize a single element but turn the sequence into a map logic.
It uses ElementAsKeyValueSerializer for the map element serialization.
The Serializer implementation handles serialize_struct, serialize_map and serialize_seq functions by deferring the work to SerializeStruct, SerializeMap and SerializeSeq respectively.
Fields§
§delegate: M§is_human_readable: boolTrait Implementations§
Source§impl<M> SerializeSeq for SerializeSeqElement<M>where
M: SerializeMap,
impl<M> SerializeSeq for SerializeSeqElement<M>where
M: SerializeMap,
Auto Trait Implementations§
impl<M> Freeze for SerializeSeqElement<M>where
M: Freeze,
impl<M> RefUnwindSafe for SerializeSeqElement<M>where
M: RefUnwindSafe,
impl<M> Send for SerializeSeqElement<M>where
M: Send,
impl<M> Sync for SerializeSeqElement<M>where
M: Sync,
impl<M> Unpin for SerializeSeqElement<M>where
M: Unpin,
impl<M> UnsafeUnpin for SerializeSeqElement<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for SerializeSeqElement<M>where
M: UnwindSafe,
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