pub struct ContentAddress(pub [u8; 32]);
Expand description
Content address of a predicate or contract.
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
Source§impl Clone for ContentAddress
impl Clone for ContentAddress
Source§fn clone(&self) -> ContentAddress
fn clone(&self) -> ContentAddress
Returns a duplicate 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<ContentAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
d: D,
) -> Result<ContentAddress, <D as Deserializer<'de>>::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 FromStr for ContentAddress
impl FromStr for ContentAddress
Source§type Err = FromHexError
type Err = FromHexError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ContentAddress, <ContentAddress as FromStr>::Err>
fn from_str(s: &str) -> Result<ContentAddress, <ContentAddress as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§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§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more