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>where
T: Clone + Clone,
DT: Deserializer<T> + Clone,
impl<T, DT> Clone for OptionDeserializer<T, DT>where T: Clone + Clone, DT: Deserializer<T> + Clone,
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> RefUnwindSafe for OptionDeserializer<T, DT>where DT: RefUnwindSafe, T: RefUnwindSafe,
impl<T, DT> Send for OptionDeserializer<T, DT>where DT: Send, T: Send,
impl<T, DT> Sync for OptionDeserializer<T, DT>where DT: Sync, T: Sync,
impl<T, DT> Unpin for OptionDeserializer<T, DT>where DT: Unpin, T: Unpin,
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