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

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

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 portable forms that require some sort of interning data structures.

Associated Types

type Type: PartialEq + Eq + PartialOrd + Ord + Clone + Debug[src]

The type representing the type.

type String: FormString[src]

The string type.

Loading content...

Implementors

impl Form for MetaForm[src]

type Type = MetaType

type String = &'static str

impl<S> Form for PortableForm<S> where
    S: FormString
[src]

Loading content...