pub type VotePlanId = Hash;

Aliased Type§

struct VotePlanId {
    hash: Blake2b256,
}

Fields§

§hash: Blake2b256

Implementations§

source§

impl Hash

source

pub fn serialize<__S>( __self: &Hash, __serializer: __S ) -> Result<__S::Ok, __S::Error>where __S: Serializer,

source§

impl<'de> Hash

source

pub fn deserialize<__D>(__deserializer: __D) -> Result<Hash, __D::Error>where __D: Deserializer<'de>,

source§

impl Hash

source

pub fn into_digest(self) -> Digest<Blake2b256>

source

pub fn into_hash(self) -> Hash

source

pub fn into_digest_of<T>(self) -> DigestOf<Blake2b256, T>

source

pub fn to_hex(self) -> String

source

pub fn from_hex(s: &str) -> Result<Self, Error>

Trait Implementations§

source§

impl AsRef<Blake2b256> for Hash

source§

fn as_ref(&self) -> &Blake2b256

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Hash

source§

fn clone(&self) -> Hash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Hash

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<[u8; 32]> for Hash

source§

fn from(bytes: [u8; 32]) -> Self

Converts to this type from the input type.
source§

impl From<Blake2b256> for Hash

source§

fn from(hash: Blake2b256) -> Self

Converts to this type from the input type.
source§

impl<T> From<DigestOf<Blake2b256, T>> for Hash

source§

fn from(d: DigestOf<Blake2b256, T>) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(hash: Hash) -> Self

Converts to this type from the input type.
source§

impl FromStr for Hash

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Hash

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Hash

source§

fn cmp(&self, other: &Hash) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Hash> for Hash

source§

fn eq(&self, other: &Hash) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Hash> for Hash

source§

fn partial_cmp(&self, other: &Hash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Hash

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Hash

source§

impl Eq for Hash

source§

impl StructuralEq for Hash

source§

impl StructuralPartialEq for Hash