Type Definition libp2p::multihash::BoxedMultihashDigest [−][src]
type BoxedMultihashDigest<T = Code> = Box<dyn MultihashDigest<T> + 'static, Global>;
This type makes it easier to interact with hashers
Example
ⓘ
let hasher1: BoxedMultihashDigest = Code::Sha3_512.into(); let hasher2: BoxedMultihashDigest<_> = MyCodecTable::MyHash.into();