[][src]Trait darwinia_shadow::mmr::H256

pub trait H256 {
    fn from(s: &str) -> Self;
fn from_bytes(b: &[u8]) -> Self;
fn hex(&self) -> String; }

H256 trait for [u8;32]

Required methods

fn from(s: &str) -> Self

Generate H256 from &str

fn from_bytes(b: &[u8]) -> Self

Generate H256 from &[u8]

fn hex(&self) -> String

Convert H256 bytes to hex string

Loading content...

Implementations on Foreign Types

impl H256 for [u8; 32][src]

Loading content...

Implementors

Loading content...