pub struct ContentAddress(pub Hash);
Expand description
Content address of a predicate or contract.
Tuple Fields§
§0: Hash
Trait Implementations§
Source§impl Clone for ContentAddress
impl Clone for ContentAddress
Source§fn clone(&self) -> ContentAddress
fn clone(&self) -> ContentAddress
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 ContentAddress
impl Debug for ContentAddress
Source§impl<'de> Deserialize<'de> for ContentAddress
impl<'de> Deserialize<'de> for ContentAddress
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ContentAddress
impl Display for ContentAddress
Source§impl From<ContentAddress> for [Word; 4]
impl From<ContentAddress> for [Word; 4]
Source§fn from(address: ContentAddress) -> Self
fn from(address: ContentAddress) -> Self
Converts to this type from the input type.
Source§impl From<ContentAddress> for [u8; 32]
impl From<ContentAddress> for [u8; 32]
Source§fn from(address: ContentAddress) -> Self
fn from(address: ContentAddress) -> Self
Converts to this type from the input type.
Source§impl FromStr for ContentAddress
impl FromStr for ContentAddress
Source§impl Hash for ContentAddress
impl Hash for ContentAddress
Source§impl LowerHex for ContentAddress
impl LowerHex for ContentAddress
Source§impl Ord for ContentAddress
impl Ord for ContentAddress
Source§fn cmp(&self, other: &ContentAddress) -> Ordering
fn cmp(&self, other: &ContentAddress) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ContentAddress
impl PartialEq for ContentAddress
Source§impl PartialOrd for ContentAddress
impl PartialOrd for ContentAddress
Source§impl Serialize for ContentAddress
impl Serialize for ContentAddress
Source§impl UpperHex for ContentAddress
impl UpperHex for ContentAddress
impl Eq for ContentAddress
impl StructuralPartialEq for ContentAddress
Auto Trait Implementations§
impl Freeze for ContentAddress
impl RefUnwindSafe for ContentAddress
impl Send for ContentAddress
impl Sync for ContentAddress
impl Unpin for ContentAddress
impl UnwindSafe for ContentAddress
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