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§impl IntoArgs for ZRangeSortBy
impl IntoArgs for ZRangeSortBy
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
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