Enum fred::types::ZRangeBound
source · pub enum ZRangeBound {
Index(i64),
Score(f64),
Lex(String),
InfiniteLex,
NegInfinityLex,
InfiniteScore,
NegInfiniteScore,
}Available on crate feature
i-sorted-sets only.Expand description
An index, score, lexicographical, or +|-|+inf|-inf range bound for the ZRANGE command.
Variants§
Index(i64)
Index ranges (https://redis.io/commands/zrange#index-ranges)
Score(f64)
Score ranges (https://redis.io/commands/zrange#score-ranges)
Lex(String)
Lexicographical ranges (https://redis.io/commands/zrange#lexicographical-ranges)
InfiniteLex
Shortcut for the + character.
NegInfinityLex
Shortcut for the - character.
InfiniteScore
Shortcut for the +inf range bound.
NegInfiniteScore
Shortcut for the -inf range bound.
Trait Implementations§
source§impl Clone for ZRangeBound
impl Clone for ZRangeBound
source§fn clone(&self) -> ZRangeBound
fn clone(&self) -> ZRangeBound
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ZRangeBound
impl Debug for ZRangeBound
source§impl<'a> From<&'a String> for ZRangeBound
impl<'a> From<&'a String> for ZRangeBound
source§impl<'a> From<&'a str> for ZRangeBound
impl<'a> From<&'a str> for ZRangeBound
source§impl From<String> for ZRangeBound
impl From<String> for ZRangeBound
source§impl From<i64> for ZRangeBound
impl From<i64> for ZRangeBound
Auto Trait Implementations§
impl Freeze for ZRangeBound
impl RefUnwindSafe for ZRangeBound
impl Send for ZRangeBound
impl Sync for ZRangeBound
impl Unpin for ZRangeBound
impl UnwindSafe for ZRangeBound
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more