pub trait ToMultihash {
// Required methods
fn to_multihash(&self) -> Multihash;
fn to_multihash_by_code(&self, code: MultihashCode) -> Multihash;
}
Expand description
Helper trait for converting to multihash.
Required Methods§
sourcefn to_multihash(&self) -> Multihash
fn to_multihash(&self) -> Multihash
Convert to multihash by the default multihash code.
sourcefn to_multihash_by_code(&self, code: MultihashCode) -> Multihash
fn to_multihash_by_code(&self, code: MultihashCode) -> Multihash
Convert to multihash by the specified multihash code.