pub enum Change<V> {
Insert(V),
Delete,
}
Variants§
Implementations§
source§impl<V> Change<V>
impl<V> Change<V>
sourcepub fn as_insert_mut(&mut self) -> Option<&mut V>
pub fn as_insert_mut(&mut self) -> Option<&mut V>
Optionally returns mutable references to the inner fields if this is a Change::Insert
, otherwise None
sourcepub fn as_insert(&self) -> Option<&V>
pub fn as_insert(&self) -> Option<&V>
Optionally returns references to the inner fields if this is a Change::Insert
, otherwise None
sourcepub fn into_insert(self) -> Result<V, Self>
pub fn into_insert(self) -> Result<V, Self>
Returns the inner fields if this is a Change::Insert
, otherwise returns back the enum in the Err
case of the result
Trait Implementations§
impl<V: Copy> Copy for Change<V>
impl<V: Eq> Eq for Change<V>
impl<V> StructuralPartialEq for Change<V>
Auto Trait Implementations§
impl<V> Freeze for Change<V>where
V: Freeze,
impl<V> RefUnwindSafe for Change<V>where
V: RefUnwindSafe,
impl<V> Send for Change<V>where
V: Send,
impl<V> Sync for Change<V>where
V: Sync,
impl<V> Unpin for Change<V>where
V: Unpin,
impl<V> UnwindSafe for Change<V>where
V: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)