Struct chain_impl_mockchain::tokens::policy_hash::PolicyHash
source · pub struct PolicyHash([u8; 28]);
Expand description
blake2b_224 hash of a serialized minting policy
Tuple Fields§
§0: [u8; 28]
Trait Implementations§
source§impl Arbitrary for PolicyHash
impl Arbitrary for PolicyHash
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<PolicyHash>
type Strategy = BoxedStrategy<PolicyHash>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Arbitrary for PolicyHash
impl Arbitrary for PolicyHash
source§impl AsRef<[u8]> for PolicyHash
impl AsRef<[u8]> for PolicyHash
source§impl Clone for PolicyHash
impl Clone for PolicyHash
source§fn clone(&self) -> PolicyHash
fn clone(&self) -> PolicyHash
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 PolicyHash
impl Debug for PolicyHash
source§impl Deserialize for PolicyHash
impl Deserialize for PolicyHash
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>
fn deserialize_validate<R>(codec: &mut Codec<R>) -> Result<(), ReadError>where R: Read,
source§impl Hash for PolicyHash
impl Hash for PolicyHash
source§impl Ord for PolicyHash
impl Ord for PolicyHash
source§fn cmp(&self, other: &PolicyHash) -> Ordering
fn cmp(&self, other: &PolicyHash) -> 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<PolicyHash> for PolicyHash
impl PartialEq<PolicyHash> for PolicyHash
source§fn eq(&self, other: &PolicyHash) -> bool
fn eq(&self, other: &PolicyHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PolicyHash> for PolicyHash
impl PartialOrd<PolicyHash> for PolicyHash
source§fn partial_cmp(&self, other: &PolicyHash) -> Option<Ordering>
fn partial_cmp(&self, other: &PolicyHash) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&[u8]> for PolicyHash
impl TryFrom<&[u8]> for PolicyHash
impl Eq for PolicyHash
impl StructuralEq for PolicyHash
impl StructuralPartialEq for PolicyHash
Auto Trait Implementations§
impl RefUnwindSafe for PolicyHash
impl Send for PolicyHash
impl Sync for PolicyHash
impl Unpin for PolicyHash
impl UnwindSafe for PolicyHash
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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
§impl<T> DeserializeFromSlice for Twhere
T: Deserialize,
impl<T> DeserializeFromSlice for Twhere T: Deserialize,
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<T, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)