pub enum ValueKey {
Int(i64),
BigInt(BigInt),
Rational(BigInt, BigInt),
Float(u64),
Str(String),
Char(char),
Bool(bool),
Symbol(u32),
Expr(u32),
}Expand description
Hashable key for Dict/Set (spec §11.6): a value-semantic, immutable subset of Value —
numbers (canonicalized), strings, chars, bools, and symbol/expr handles.
Variants§
Int(i64)
BigInt(BigInt)
Rational(BigInt, BigInt)
Float(u64)
Str(String)
Char(char)
Bool(bool)
Symbol(u32)
Expr(u32)
Implementations§
Trait Implementations§
impl Eq for ValueKey
impl StructuralPartialEq for ValueKey
Auto Trait Implementations§
impl Freeze for ValueKey
impl RefUnwindSafe for ValueKey
impl Send for ValueKey
impl Sync for ValueKey
impl Unpin for ValueKey
impl UnsafeUnpin for ValueKey
impl UnwindSafe for ValueKey
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