pub struct NoValue;
Expand description
Unit type denoting no value (for databases which only contain keys but no values)
Trait Implementations§
source§impl Ord for NoValue
impl Ord for NoValue
source§impl PartialEq<NoValue> for NoValue
impl PartialEq<NoValue> for NoValue
source§impl PartialOrd<NoValue> for NoValue
impl PartialOrd<NoValue> for NoValue
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 Storable for NoValue
impl Storable for NoValue
source§const CONST_BYTES_LEN: bool = true
const CONST_BYTES_LEN: bool = true
Does byte representation have fixed length? Read more
source§const TRIVIAL_CMP: bool = true
const TRIVIAL_CMP: bool = true
Does
Storable::cmp_bytes_unchecked
perform a trivial (byte wise)
lexicographical comparison?§type BytesRef<'a> = &'static [u8]
type BytesRef<'a> = &'static [u8]
Byte representation as
GenericCow
Read more§type AlignedRef<'a> = &'static NoValue
type AlignedRef<'a> = &'static NoValue
source§unsafe fn from_bytes_unchecked(_bytes: &[u8]) -> Self::AlignedRef<'_>
unsafe fn from_bytes_unchecked(_bytes: &[u8]) -> Self::AlignedRef<'_>
Converts from byte slice Read more
source§unsafe fn cmp_bytes_unchecked(_a: &[u8], _b: &[u8]) -> Ordering
unsafe fn cmp_bytes_unchecked(_a: &[u8], _b: &[u8]) -> Ordering
Compares byte representation Read more
source§const OPTIMIZE_INT: bool = false
const OPTIMIZE_INT: bool = false
Is type equivalent to
c_uint
or the C type size_t
, and is its
byte representation in native byte order?