Trait HasCompact
parity_codec
pub trait HasCompact: Copy { type Type: Encode + Decode + From<Self> + Into<Self>; }
Trait that tells you if a given type can be encoded/decoded as Compact<T>.
Compact<T>
type Type: Encode + Decode + From<Self> + Into<Self>
impl<T> HasCompact for T where T: Encode + Decode + Copy, Compact<T>: Encode + Decode + From<T> + Into<Self>, type Type = Compact<T>;