pub enum Operation<Key, Value> {
Set(Key, Value),
Dereference(Key),
Reference(Key),
}Expand description
Different operations allowed for a commit. Behavior may differs depending on column configuration.
Variants
Set(Key, Value)
Insert or update the value for a given key.
Dereference(Key)
Dereference at a given key, resulting in either removal of a key value or decrement of its reference count counter.
Reference(Key)
Increment the reference count counter of an existing value for a given key. If no value exists for the key, this operation is skipped.
Implementations
Trait Implementations
sourceimpl<Key: Ord, Value: Eq> Ord for Operation<Key, Value>
impl<Key: Ord, Value: Eq> Ord for Operation<Key, Value>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Key: PartialEq, Value: PartialEq> PartialEq<Operation<Key, Value>> for Operation<Key, Value>
impl<Key: PartialEq, Value: PartialEq> PartialEq<Operation<Key, Value>> for Operation<Key, Value>
sourceimpl<Key: Ord, Value: Eq> PartialOrd<Operation<Key, Value>> for Operation<Key, Value>
impl<Key: Ord, Value: Eq> PartialOrd<Operation<Key, Value>> for Operation<Key, Value>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<Key: Eq, Value: Eq> Eq for Operation<Key, Value>
impl<Key, Value> StructuralEq for Operation<Key, Value>
impl<Key, Value> StructuralPartialEq for Operation<Key, Value>
Auto Trait Implementations
impl<Key, Value> RefUnwindSafe for Operation<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for Operation<Key, Value>where
Key: Send,
Value: Send,
impl<Key, Value> Sync for Operation<Key, Value>where
Key: Sync,
Value: Sync,
impl<Key, Value> Unpin for Operation<Key, Value>where
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for Operation<Key, Value>where
Key: UnwindSafe,
Value: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more