pub struct SerializeTupleVariantAsSingletonMap<M> { /* private fields */ }
Expand description
A helper struct for serializing tuple variants as singleton maps.
This struct is used internally by the singleton_map
module to serialize tuple variants
as YAML maps with a single key-value pair, where the key is the variant name and the value
is a YAML sequence containing the tuple elements.
§Type Parameters
M
- The type of the underlying serializer map.
Trait Implementations§
Source§impl<M: Clone> Clone for SerializeTupleVariantAsSingletonMap<M>
impl<M: Clone> Clone for SerializeTupleVariantAsSingletonMap<M>
Source§fn clone(&self) -> SerializeTupleVariantAsSingletonMap<M>
fn clone(&self) -> SerializeTupleVariantAsSingletonMap<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M: Debug> Debug for SerializeTupleVariantAsSingletonMap<M>
impl<M: Debug> Debug for SerializeTupleVariantAsSingletonMap<M>
Source§impl<M> SerializeTupleVariant for SerializeTupleVariantAsSingletonMap<M>where
M: SerializeMap,
impl<M> SerializeTupleVariant for SerializeTupleVariantAsSingletonMap<M>where
M: SerializeMap,
Auto Trait Implementations§
impl<M> Freeze for SerializeTupleVariantAsSingletonMap<M>where
M: Freeze,
impl<M> RefUnwindSafe for SerializeTupleVariantAsSingletonMap<M>where
M: RefUnwindSafe,
impl<M> Send for SerializeTupleVariantAsSingletonMap<M>where
M: Send,
impl<M> Sync for SerializeTupleVariantAsSingletonMap<M>where
M: Sync,
impl<M> Unpin for SerializeTupleVariantAsSingletonMap<M>where
M: Unpin,
impl<M> UnwindSafe for SerializeTupleVariantAsSingletonMap<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)