Trait frame_support::dispatch::HasCompact [−]
pub trait HasCompact { type Type: for<'a> EncodeAsRef<'a, Self> + Decode + From<Self> + Into<Self>; }
Expand description
Trait that tells you if a given type can be encoded/decoded in a compact way.
Associated Types
type Type: for<'a> EncodeAsRef<'a, Self> + Decode + From<Self> + Into<Self>
type Type: for<'a> EncodeAsRef<'a, Self> + Decode + From<Self> + Into<Self>
The compact type; this can be
Implementors
impl<T> HasCompact for T where
T: 'static,
Compact<T>: for<'a> EncodeAsRef<'a, T>,
Compact<T>: Decode,
Compact<T>: From<T>,
Compact<T>: Into<T>,