pub struct ContentHash(pub String);Expand description
Content-addressed hash identifying a message (SHA-256 hex string).
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for ContentHash
impl Clone for ContentHash
Source§impl Debug for ContentHash
impl Debug for ContentHash
impl Eq for ContentHash
Source§impl Hash for ContentHash
impl Hash for ContentHash
Source§impl Ord for ContentHash
impl Ord for ContentHash
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 PartialEq for ContentHash
impl PartialEq for ContentHash
Source§impl PartialOrd for ContentHash
impl PartialOrd for ContentHash
impl StructuralPartialEq for ContentHash
Auto Trait Implementations§
impl Forget for ContentHash
impl Freeze for ContentHash
impl Move for ContentHash
impl RefUnwindSafe for ContentHash
impl Send for ContentHashwhere
RawVecInner: Send,
impl Sync for ContentHashwhere
RawVecInner: Sync,
impl Unpin for ContentHash
impl UnsafeUnpin for ContentHash
impl UnwindSafe for ContentHashwhere
RawVecInner: UnwindSafe,
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