Type Alias frame_support::traits::Hash

source ·
pub type Hash = H256;

Aliased Type§

struct Hash(pub [u8; 32]);

Fields§

§0: [u8; 32]

Trait Implementations§

§

impl Decode for H256

§

fn decode<I>(input: &mut I) -> Result<H256, Error>where I: Input,

Attempt to deserialise the value from input.
source§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§

fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,

Attempt to skip the encoded value from input. Read more
source§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl Encode for H256

§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

Convert self to a slice and append it to the destination.
source§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
source§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl MaxEncodedLen for H256

§

fn max_encoded_len() -> usize

Upper bound, in bytes, of the maximum encoded size of this item.
§

impl TypeInfo for H256

§

type Identity = H256

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type<MetaForm>

Returns the static type identifier for Self.