pub enum DbValueKey {
Null,
Bool(bool),
Int(i64),
FloatBits(u64),
Str(String),
Bytes(Vec<u8>),
}Expand description
Hashable key derived from a &DbValue.
See the module docs for the normalization rationale.
Variants§
Null
Bool(bool)
Int(i64)
I16/I32/I64 unified — the most common PK/FK type, zero allocation.
FloatBits(u64)
F32/F64 unified via to_bits() — correct hash semantics for NaN.
Str(String)
Bytes(Vec<u8>)
Trait Implementations§
Source§impl Clone for DbValueKey
impl Clone for DbValueKey
Source§fn clone(&self) -> DbValueKey
fn clone(&self) -> DbValueKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DbValueKey
impl Debug for DbValueKey
impl Eq for DbValueKey
Source§impl From<&DbValue> for DbValueKey
impl From<&DbValue> for DbValueKey
Source§impl Hash for DbValueKey
impl Hash for DbValueKey
Source§impl PartialEq for DbValueKey
impl PartialEq for DbValueKey
impl StructuralPartialEq for DbValueKey
Auto Trait Implementations§
impl Freeze for DbValueKey
impl RefUnwindSafe for DbValueKey
impl Send for DbValueKey
impl Sync for DbValueKey
impl Unpin for DbValueKey
impl UnsafeUnpin for DbValueKey
impl UnwindSafe for DbValueKey
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