pub enum OptionMutation<T: Mutable> {
SomeToSome(T::Mutation),
SomeToNone(T),
NoneToSome(T),
}
Variants§
Trait Implementations§
Source§impl<T: Clone + Mutable> Clone for OptionMutation<T>
impl<T: Clone + Mutable> Clone for OptionMutation<T>
Source§fn clone(&self) -> OptionMutation<T>
fn clone(&self) -> OptionMutation<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 moreimpl<T: Mutable> StructuralPartialEq for OptionMutation<T>
Auto Trait Implementations§
impl<T> Freeze for OptionMutation<T>
impl<T> RefUnwindSafe for OptionMutation<T>
impl<T> Send for OptionMutation<T>
impl<T> Sync for OptionMutation<T>
impl<T> Unpin for OptionMutation<T>
impl<T> UnwindSafe for OptionMutation<T>
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