Function gclient::ext::sp_core::convert_hash

pub fn convert_hash<H1, H2>(src: &H2) -> H1
where H1: Default + AsMut<[u8]>, H2: AsRef<[u8]>,
Expand description

Hash conversion. Used to convert between unbound associated hash types in traits, implemented by the same hash type. Panics if used to convert between different hash types.