#[non_exhaustive]pub enum ZAddComparison {
GT,
LT,
}Expand description
Comparison option for the zadd command
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GT
Only update existing elements if the new score is greater than the current score.
This flag doesn’t prevent adding new elements.
LT
Only update existing elements if the new score is less than the current score.
This flag doesn’t prevent adding new elements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZAddComparison
impl RefUnwindSafe for ZAddComparison
impl Send for ZAddComparison
impl Sync for ZAddComparison
impl Unpin for ZAddComparison
impl UnsafeUnpin for ZAddComparison
impl UnwindSafe for ZAddComparison
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