[][src]Trait scale_info::form::Form

pub trait Form {
    type Type: PartialEq + Eq + PartialOrd + Ord + Clone + Debug;
    type String: Serialize + PartialEq + Eq + PartialOrd + Ord + Clone + Debug;
}

Trait to control the internal structures of type definitions.

This allows for type-level separation between free forms that can be instantiated out of the flux and compact forms that require some sort of interning data structures.

Associated Types

type Type: PartialEq + Eq + PartialOrd + Ord + Clone + Debug

The type representing the type.

type String: Serialize + PartialEq + Eq + PartialOrd + Ord + Clone + Debug

The string type.

Loading content...

Implementors

impl Form for CompactForm[src]

impl Form for MetaForm[src]

type Type = MetaType

type String = &'static str

Loading content...