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