pub enum ZRangeSortBy {
None,
ByScore,
ByLex,
}
Expand description
sort by option of the zrange
command
Variants§
None
No sort by
ByScore
When the ByScore
option is provided, the command behaves like ZRANGEBYSCORE
and returns
the range of elements from the sorted set having scores equal or between start
and stop
.
ByLex
When the ByLex
option is used, the command behaves like ZRANGEBYLEX
and returns the range
of elements from the sorted set between the start
and stop
lexicographical closed range intervals.
Trait Implementations§
Source§impl Default for ZRangeSortBy
impl Default for ZRangeSortBy
Source§fn default() -> ZRangeSortBy
fn default() -> ZRangeSortBy
Returns the “default value” for a type. Read more
Source§impl ToArgs for ZRangeSortBy
impl ToArgs for ZRangeSortBy
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 ZRangeSortBy
impl RefUnwindSafe for ZRangeSortBy
impl Send for ZRangeSortBy
impl Sync for ZRangeSortBy
impl Unpin for ZRangeSortBy
impl UnwindSafe for ZRangeSortBy
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