pub enum OptionDelta<T>where
T: Clone,{
Set(T),
Clear,
}Variants§
Trait Implementations§
Source§impl<T> Clone for OptionDelta<T>
impl<T> Clone for OptionDelta<T>
Source§fn clone(&self) -> OptionDelta<T>
fn clone(&self) -> OptionDelta<T>
Returns a duplicate 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> DeltaStruct<OptionDelta<T>> for Option<T>where
T: Clone,
impl<T> DeltaStruct<OptionDelta<T>> for Option<T>where
T: Clone,
fn apply(&mut self, delta: &OptionDelta<T>)
Auto Trait Implementations§
impl<T> Freeze for OptionDelta<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionDelta<T>where
T: RefUnwindSafe,
impl<T> Send for OptionDelta<T>where
T: Send,
impl<T> Sync for OptionDelta<T>where
T: Sync,
impl<T> Unpin for OptionDelta<T>where
T: Unpin,
impl<T> UnwindSafe for OptionDelta<T>where
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