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> Freeze for OptionSerializer<T, ST>where
ST: Freeze,
impl<T, ST> RefUnwindSafe for OptionSerializer<T, ST>where
ST: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, ST> Send for OptionSerializer<T, ST>
impl<T, ST> Sync for OptionSerializer<T, ST>
impl<T, ST> Unpin for OptionSerializer<T, ST>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)