Trait parity_scale_codec::HasCompact

source ·
pub trait HasCompact: Sized {
    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.

Required Associated Types§

source

type Type: for<'a> EncodeAsRef<'a, Self> + Decode + From<Self> + Into<Self>

The compact type; this can be

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: 'static> HasCompact for T
where Compact<T>: for<'a> EncodeAsRef<'a, T> + Decode + From<Self> + Into<Self>,

§

type Type = Compact<T>