pub struct NoKey;
Expand description
Unit type denoting no key (for databases which only contain a single value)
Trait Implementations§
source§impl Ord for NoKey
impl Ord for NoKey
source§impl PartialEq<NoKey> for NoKey
impl PartialEq<NoKey> for NoKey
source§impl PartialOrd<NoKey> for NoKey
impl PartialOrd<NoKey> for NoKey
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 NoKey
impl Storable for NoKey
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 NoKey
type AlignedRef<'a> = &'static NoKey
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?