Struct massa_serialization::OptionSerializer
source · pub struct OptionSerializer<T, ST>where
ST: Serializer<T>,{
pub(crate) data_serializer: ST,
pub(crate) phantom_t: PhantomData<T>,
}
Fields§
§data_serializer: ST
§phantom_t: PhantomData<T>
Implementations§
source§impl<T, ST> OptionSerializer<T, ST>where
ST: Serializer<T>,
impl<T, ST> OptionSerializer<T, ST>where ST: Serializer<T>,
Trait Implementations§
source§impl<T: Clone, ST> Clone for OptionSerializer<T, ST>where
ST: Serializer<T> + Clone,
impl<T: Clone, ST> Clone for OptionSerializer<T, ST>where ST: Serializer<T> + Clone,
source§fn clone(&self) -> OptionSerializer<T, ST>
fn clone(&self) -> OptionSerializer<T, ST>
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<T, ST> Serializer<Option<T>> for OptionSerializer<T, ST>where
ST: Serializer<T>,
impl<T, ST> Serializer<Option<T>> for OptionSerializer<T, ST>where ST: Serializer<T>,
Auto Trait Implementations§
impl<T, ST> RefUnwindSafe for OptionSerializer<T, ST>where ST: RefUnwindSafe, T: RefUnwindSafe,
impl<T, ST> Send for OptionSerializer<T, ST>where ST: Send, T: Send,
impl<T, ST> Sync for OptionSerializer<T, ST>where ST: Sync, T: Sync,
impl<T, ST> Unpin for OptionSerializer<T, ST>where ST: Unpin, T: Unpin,
impl<T, ST> UnwindSafe for OptionSerializer<T, ST>where ST: UnwindSafe, T: 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