referrerpolicy=no-referrer-when-downgrade
substrate_test_runtime

Type Alias Hashing

Source
pub type Hashing = BlakeTwo256;
Expand description

The hashing algorithm used.

Aliased Type§

struct Hashing;

Trait Implementations

Source§

impl Clone for BlakeTwo256

Source§

fn clone(&self) -> BlakeTwo256

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 BlakeTwo256

Source§

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

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

impl<'de> Deserialize<'de> for BlakeTwo256

Source§

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

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

impl Hash for BlakeTwo256

Source§

type Output = H256

The hash type produced.
Source§

fn ordered_trie_root( input: Vec<Vec<u8>>, version: StateVersion, ) -> <BlakeTwo256 as Hash>::Output

The ordered Patricia tree root of the given input.
Source§

fn trie_root( input: Vec<(Vec<u8>, Vec<u8>)>, version: StateVersion, ) -> <BlakeTwo256 as Hash>::Output

The Patricia tree root of the given mapping.
Source§

fn hash(s: &[u8]) -> Self::Output

Produce the hash of some byte-slice.
Source§

fn hash_of<S>(s: &S) -> Self::Output
where S: Encode,

Produce the hash of some codec-encodable value.
Source§

impl Hasher for BlakeTwo256

Source§

const LENGTH: usize = 32usize

The length in bytes of the Hasher output.
Source§

type Out = H256

The output type of the Hasher
Source§

type StdHasher = Hash256StdHasher

What to use to build HashMaps with this Hasher.
Source§

fn hash(s: &[u8]) -> <BlakeTwo256 as Hasher>::Out

Compute the hash of the provided slice of bytes returning the Out type of the Hasher.
Source§

impl PartialEq for BlakeTwo256

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for BlakeTwo256

Source§

fn serialize<__S>( &self, __serializer: __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 TypeInfo for BlakeTwo256

Source§

type Identity = BlakeTwo256

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

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl Eq for BlakeTwo256

Source§

impl StructuralPartialEq for BlakeTwo256