pub enum MapKey {
Int(i64),
String(SeqString),
Bool(bool),
}Expand description
MapKey: Hashable subset of Value for use as map keys
Only types that can be meaningfully hashed are allowed as map keys: Int, String, Bool. Float is excluded due to NaN equality issues.
Variants§
Implementations§
Trait Implementations§
impl Eq for MapKey
impl StructuralPartialEq for MapKey
Auto Trait Implementations§
impl Freeze for MapKey
impl RefUnwindSafe for MapKey
impl Send for MapKey
impl !Sync for MapKey
impl Unpin for MapKey
impl UnwindSafe for MapKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)