pub struct WeftHash(pub [u8; 32]);Expand description
A definition’s identity: the SHA-256 of its canonical encoding.
Rendered — including on the wire — as weft:<hex>. To know the hash is to
know the thing entire.
Tuple Fields§
§0: [u8; 32]Trait Implementations§
impl Copy for WeftHash
Source§impl<'de> Deserialize<'de> for WeftHash
impl<'de> Deserialize<'de> for WeftHash
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WeftHash
Source§impl Ord for WeftHash
impl Ord for WeftHash
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WeftHash
impl PartialOrd for WeftHash
impl StructuralPartialEq for WeftHash
Auto Trait Implementations§
impl Freeze for WeftHash
impl RefUnwindSafe for WeftHash
impl Send for WeftHash
impl Sync for WeftHash
impl Unpin for WeftHash
impl UnsafeUnpin for WeftHash
impl UnwindSafe for WeftHash
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