pub struct CanonicalValue(/* private fields */);
Expand description
A CBOR Value that impl Ord and Eq to allow sorting of values as defined in both RFC 7049 Section 3.9 (regarding key sorting) and RFC 8949 4.2.3 (as errata).
Since a regular Value can be
Trait Implementations§
Source§impl Clone for CanonicalValue
impl Clone for CanonicalValue
Source§fn clone(&self) -> CanonicalValue
fn clone(&self) -> CanonicalValue
Returns a copy of the value. Read more
1.0.0 · 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 CanonicalValue
impl Debug for CanonicalValue
Source§impl<'de> Deserialize<'de> for CanonicalValue
impl<'de> Deserialize<'de> for CanonicalValue
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CanonicalValue> for Value
impl From<CanonicalValue> for Value
Source§fn from(v: CanonicalValue) -> Self
fn from(v: CanonicalValue) -> Self
Converts to this type from the input type.
Source§impl From<Value> for CanonicalValue
impl From<Value> for CanonicalValue
Source§impl Ord for CanonicalValue
impl Ord for CanonicalValue
Source§impl PartialEq for CanonicalValue
impl PartialEq for CanonicalValue
Source§impl PartialOrd for CanonicalValue
impl PartialOrd for CanonicalValue
Source§impl Serialize for CanonicalValue
impl Serialize for CanonicalValue
impl Eq for CanonicalValue
Auto Trait Implementations§
impl Freeze for CanonicalValue
impl RefUnwindSafe for CanonicalValue
impl Send for CanonicalValue
impl Sync for CanonicalValue
impl Unpin for CanonicalValue
impl UnwindSafe for CanonicalValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes