pub enum By<'a> {
Rank {
start: i64,
stop: i64,
},
Score {
min: Bound,
max: Bound,
},
Lex {
min: Lex<'a>,
max: Lex<'a>,
},
}Expand description
What a range is measured in.
Variants§
Rank
Positions, where a negative one counts from the end. ZRANGE k 0 -1.
Score
Scores. ZRANGEBYSCORE, and ZRANGE ... BYSCORE.
Lex
Members, which is only meaningful when every score is the same.
ZRANGEBYLEX, and ZRANGE ... BYLEX.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for By<'a>
impl<'a> RefUnwindSafe for By<'a>
impl<'a> Send for By<'a>
impl<'a> Sync for By<'a>
impl<'a> Unpin for By<'a>
impl<'a> UnsafeUnpin for By<'a>
impl<'a> UnwindSafe for By<'a>
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