Trait CompactAs
susy_codec
pub trait CompactAs: From<Compact<Self>> { type As; fn encode_as(&self) -> &Self::As; fn decode_from(_: Self::As) -> Self; }
Allow foreign structs to be wrap in Compact
type As
fn encode_as(&self) -> &Self::As
fn decode_from(_: Self::As) -> Self