Enum respite::RespPrimitive
source · pub enum RespPrimitive {
Integer(i64),
Nil,
String(Bytes),
}
Expand description
A primitive value that can be used as the key for a map or set.
Variants§
Trait Implementations§
source§impl Debug for RespPrimitive
impl Debug for RespPrimitive
source§impl From<&'static str> for RespPrimitive
impl From<&'static str> for RespPrimitive
source§impl From<String> for RespPrimitive
impl From<String> for RespPrimitive
source§impl From<i64> for RespPrimitive
impl From<i64> for RespPrimitive
source§impl Hash for RespPrimitive
impl Hash for RespPrimitive
source§impl Ord for RespPrimitive
impl Ord for RespPrimitive
source§fn cmp(&self, other: &RespPrimitive) -> Ordering
fn cmp(&self, other: &RespPrimitive) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RespPrimitive
impl PartialEq for RespPrimitive
source§fn eq(&self, other: &RespPrimitive) -> bool
fn eq(&self, other: &RespPrimitive) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RespPrimitive
impl PartialOrd for RespPrimitive
source§fn partial_cmp(&self, other: &RespPrimitive) -> Option<Ordering>
fn partial_cmp(&self, other: &RespPrimitive) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<RespValue> for RespPrimitive
impl TryFrom<RespValue> for RespPrimitive
impl Eq for RespPrimitive
impl StructuralPartialEq for RespPrimitive
Auto Trait Implementations§
impl !Freeze for RespPrimitive
impl RefUnwindSafe for RespPrimitive
impl Send for RespPrimitive
impl Sync for RespPrimitive
impl Unpin for RespPrimitive
impl UnwindSafe for RespPrimitive
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