[][src]Trait scale_info::IntoCompact

pub trait IntoCompact {
    type Output;
    fn into_compact(self, registry: &mut Registry) -> Self::Output;
}

Compacts the implementor using a registry.

Associated Types

type Output

The compact version of Self.

Loading content...

Required methods

fn into_compact(self, registry: &mut Registry) -> Self::Output

Compacts self by using the registry for caching and compaction.

Loading content...

Implementations on Foreign Types

impl IntoCompact for &'static str[src]

type Output = <CompactForm as Form>::String

Loading content...

Implementors

impl IntoCompact for TypeDef[src]

type Output = TypeDef<CompactForm>

impl IntoCompact for Field[src]

type Output = Field<CompactForm>

impl IntoCompact for Path[src]

type Output = Path<CompactForm>

impl IntoCompact for Type[src]

type Output = Type<CompactForm>

impl IntoCompact for TypeDefArray[src]

type Output = TypeDefArray<CompactForm>

impl IntoCompact for TypeDefComposite[src]

type Output = TypeDefComposite<CompactForm>

impl IntoCompact for TypeDefSequence[src]

type Output = TypeDefSequence<CompactForm>

impl IntoCompact for TypeDefTuple[src]

type Output = TypeDefTuple<CompactForm>

impl IntoCompact for TypeDefVariant[src]

type Output = TypeDefVariant<CompactForm>

impl IntoCompact for Variant[src]

type Output = Variant<CompactForm>

Loading content...