pub struct CanonicalBody { /* private fields */ }Expand description
Cached canonical MessagePack body for a content-addressed value.
Not part of the serialized form. Equality ignores it. Clone drops it so a
clone cannot keep bytes that no longer match mutated fields. encode and
decode store the body; id / hash reuse it instead of serializing again.
Struct literals set this to Default::default.
Trait Implementations§
Source§impl Clone for CanonicalBody
impl Clone for CanonicalBody
Source§fn clone(&self) -> CanonicalBody
fn clone(&self) -> CanonicalBody
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 CanonicalBody
impl Debug for CanonicalBody
Source§impl Default for CanonicalBody
impl Default for CanonicalBody
Source§fn default() -> CanonicalBody
fn default() -> CanonicalBody
Returns the “default value” for a type. Read more
impl Eq for CanonicalBody
Auto Trait Implementations§
impl !Freeze for CanonicalBody
impl RefUnwindSafe for CanonicalBody
impl Send for CanonicalBody
impl Sync for CanonicalBody
impl Unpin for CanonicalBody
impl UnsafeUnpin for CanonicalBody
impl UnwindSafe for CanonicalBody
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