pub enum UpdateOp {
IncrementPost,
IncrementPre,
DecrementPost,
DecrementPre,
}Expand description
A update operator is one that takes a single operand/argument and performs an operation.
More information:
Variants§
IncrementPost
The increment operator increments (adds one to) its operand and returns a value.
Syntax: x++
This operator increments and returns the value after incrementing.
More information:
IncrementPre
The increment operator increments (adds one to) its operand and returns a value.
Syntax: ++x
This operator increments and returns the value before incrementing.
More information:
DecrementPost
The decrement operator decrements (subtracts one from) its operand and returns a value.
Syntax: x--
This operator decrements and returns the value before decrementing.
More information:
DecrementPre
The decrement operator decrements (subtracts one from) its operand and returns a value.
Syntax: --x
This operator decrements the operand and returns the value after decrementing.
More information:
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for UpdateOp
impl<'arbitrary> Arbitrary<'arbitrary> for UpdateOp
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl<'de> Deserialize<'de> for UpdateOp
impl<'de> Deserialize<'de> for UpdateOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for UpdateOp
impl Eq for UpdateOp
impl StructuralPartialEq for UpdateOp
Auto Trait Implementations§
impl Freeze for UpdateOp
impl RefUnwindSafe for UpdateOp
impl Send for UpdateOp
impl Sync for UpdateOp
impl Unpin for UpdateOp
impl UnwindSafe for UpdateOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.