referrerpolicy=no-referrer-when-downgrade
frame_support

Trait Hashable

Source
pub trait Hashable: Sized {
    // Required methods
    fn blake2_128(&self) -> [u8; 16];
    fn blake2_256(&self) -> [u8; 32];
    fn blake2_128_concat(&self) -> Vec<u8> ;
    fn twox_128(&self) -> [u8; 16];
    fn twox_256(&self) -> [u8; 32];
    fn twox_64_concat(&self) -> Vec<u8> ;
    fn identity(&self) -> Vec<u8> ;
}

Required Methods§

Source

fn blake2_128(&self) -> [u8; 16]

Source

fn blake2_256(&self) -> [u8; 32]

Source

fn blake2_128_concat(&self) -> Vec<u8>

Source

fn twox_128(&self) -> [u8; 16]

Source

fn twox_256(&self) -> [u8; 32]

Source

fn twox_64_concat(&self) -> Vec<u8>

Source

fn identity(&self) -> Vec<u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Codec> Hashable for T