[−][src]Enum serde_hashkey::Key
The central key type, which is an in-memory representation of all supported serde-serialized values.
This can be serialized to a type implementing serde::Deserialize using from_key, and deserialized from a type implementing serde::Serialize using to_key. See the corresponding function for documentation.
Variants
A unit value.
Bool(bool)A boolean value.
Integer(Integer)An integer.
A byte array.
String(String)A string.
A vector.
A map.
Implementations
impl Key[src]
pub fn normalize(self) -> Key[src]
Normalize the key, making sure that all contained maps are sorted.
Trait Implementations
impl Clone for Key[src]
impl Debug for Key[src]
impl Default for Key[src]
impl<'de> Deserialize<'de> for Key[src]
fn deserialize<D>(deserializer: D) -> Result<Key, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Eq for Key[src]
impl From<String> for Key[src]
impl From<Vec<(Key, Key)>> for Key[src]
impl From<Vec<Key>> for Key[src]
impl From<Vec<u8>> for Key[src]
impl From<bool> for Key[src]
impl From<i128> for Key[src]
impl From<i16> for Key[src]
impl From<i32> for Key[src]
impl From<i64> for Key[src]
impl From<i8> for Key[src]
impl From<u128> for Key[src]
impl From<u16> for Key[src]
impl From<u32> for Key[src]
impl From<u64> for Key[src]
impl From<u8> for Key[src]
impl Hash for Key[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<'de> IntoDeserializer<'de, Error> for &'de Key[src]
type Deserializer = Deserializer<'de>
The type of the deserializer being converted into.
fn into_deserializer(self) -> Self::Deserializer[src]
impl Ord for Key[src]
fn cmp(&self, other: &Key) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Key> for Key[src]
impl PartialOrd<Key> for Key[src]
fn partial_cmp(&self, other: &Key) -> Option<Ordering>[src]
fn lt(&self, other: &Key) -> bool[src]
fn le(&self, other: &Key) -> bool[src]
fn gt(&self, other: &Key) -> bool[src]
fn ge(&self, other: &Key) -> bool[src]
impl Serialize for Key[src]
impl StructuralEq for Key[src]
impl StructuralPartialEq for Key[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,