Trait subspace_networking::utils::multihash::ToMultihash

source ·
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§

source

fn to_multihash(&self) -> Multihash

Convert to multihash by the default multihash code.

source

fn to_multihash_by_code(&self, code: MultihashCode) -> Multihash

Convert to multihash by the specified multihash code.

Implementations on Foreign Types§

source§

impl ToMultihash for PieceIndex

Implementors§