Trait tetsy_scale_codec::CompactAs[][src]

pub trait CompactAs: From<Compact<Self>> {
    type As;
    fn encode_as(&self) -> &Self::As;
fn decode_from(_: Self::As) -> Result<Self, Error>; }

Allow foreign structs to be wrap in Compact

Associated Types

type As[src]

A compact-encodable type that should be used as the encoding.

Loading content...

Required methods

fn encode_as(&self) -> &Self::As[src]

Returns the compact-encodable type.

fn decode_from(_: Self::As) -> Result<Self, Error>[src]

Decode Self from the compact-decoded type.

Loading content...


Loading content...