multi-util 1.0.3

Multiformat utility functions and types
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: Apache-2.0
use crate::prelude::Base;

/// This trait exposes the preferred encoding for this multicodec type
pub trait EncodingInfo {
    /// return the preferred encoding for this multicodec type
    fn preferred_encoding() -> Base;

    /// return the actual encoding for this multicodec type
    fn encoding(&self) -> Base;
}