pub enum ZAddComparison {
None,
GT,
LT,
}
Expand description
Comparison option for the zadd
command
Variants§
None
No comparison
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§
Source§impl Default for ZAddComparison
impl Default for ZAddComparison
Source§fn default() -> ZAddComparison
fn default() -> ZAddComparison
Returns the “default value” for a type. Read more
Source§impl ToArgs for ZAddComparison
impl ToArgs for ZAddComparison
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for ZAddComparison
impl RefUnwindSafe for ZAddComparison
impl Send for ZAddComparison
impl Sync for ZAddComparison
impl Unpin 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