Trait frame_support::dispatch::HasCompact[][src]

pub trait HasCompact {
    type Type: Decode + for<'a> EncodeAsRef<'a, Self> + MaybeDebugSerde + Clone + PartialEq<Self::Type> + Eq + Into<Self> + From<Self>;
}

Trait that tells you if a given type can be encoded/decoded in a compact way.

Associated Types

type Type: Decode + for<'a> EncodeAsRef<'a, Self> + MaybeDebugSerde + Clone + PartialEq<Self::Type> + Eq + Into<Self> + From<Self>[src]

The compact type; this can be

Loading content...

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>,
    Compact<T>: Clone,
    Compact<T>: PartialEq<Compact<T>>,
    Compact<T>: Eq,
    Compact<T>: MaybeDebugSerde, 
[src]

type Type = Compact<T>

Loading content...