[][src]Enum scale_info::TypeDef

pub enum TypeDef<F: Form = MetaForm> {
    Composite(TypeDefComposite<F>),
    Variant(TypeDefVariant<F>),
    Sequence(TypeDefSequence<F>),
    Array(TypeDefArray<F>),
    Tuple(TypeDefTuple<F>),
    Primitive(TypeDefPrimitive),
}

The possible types a SCALE encodable Rust value could have.

Variants

Composite(TypeDefComposite<F>)

A composite type (e.g. a struct or a tuple)

Variant(TypeDefVariant<F>)

A variant type (e.g. an enum)

Sequence(TypeDefSequence<F>)

A sequence type with runtime known length.

Array(TypeDefArray<F>)

An array type with compile-time known length.

Tuple(TypeDefTuple<F>)

A tuple type.

Primitive(TypeDefPrimitive)

A Rust primitive type.

Trait Implementations

impl<F: Clone + Form> Clone for TypeDef<F>[src]

impl<F: Debug + Form> Debug for TypeDef<F>[src]

impl<F: Eq + Form> Eq for TypeDef<F>[src]

impl<F: Form> From<TypeDefArray<F>> for TypeDef<F>[src]

impl<F: Form> From<TypeDefComposite<F>> for TypeDef<F>[src]

impl<F: Form> From<TypeDefPrimitive> for TypeDef<F>[src]

impl<F: Form> From<TypeDefSequence<F>> for TypeDef<F>[src]

impl<F: Form> From<TypeDefTuple<F>> for TypeDef<F>[src]

impl<F: Form> From<TypeDefVariant<F>> for TypeDef<F>[src]

impl IntoCompact for TypeDef[src]

type Output = TypeDef<CompactForm>

The compact version of Self.

impl<F: Ord + Form> Ord for TypeDef<F>[src]

impl<F: PartialEq + Form> PartialEq<TypeDef<F>> for TypeDef<F>[src]

impl<F: PartialOrd + Form> PartialOrd<TypeDef<F>> for TypeDef<F>[src]

impl<F: Form> Serialize for TypeDef<F> where
    F::TypeId: Serialize
[src]

impl<F: Form> StructuralEq for TypeDef<F>[src]

impl<F: Form> StructuralPartialEq for TypeDef<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for TypeDef<F> where
    <F as Form>::TypeId: RefUnwindSafe

impl<F> Send for TypeDef<F> where
    <F as Form>::TypeId: Send

impl<F> Sync for TypeDef<F> where
    <F as Form>::TypeId: Sync

impl<F> Unpin for TypeDef<F> where
    <F as Form>::TypeId: Unpin

impl<F> UnwindSafe for TypeDef<F> where
    <F as Form>::TypeId: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.