[][src]Struct scale_info::TypeDefTuple

pub struct TypeDefTuple<F: Form = MetaForm> { /* fields omitted */ }

A type to refer to tuple types.

Implementations

impl TypeDefTuple[src]

pub fn new<T>(type_params: T) -> Self where
    T: IntoIterator<Item = MetaType>, 
[src]

Creates a new tuple type definition from the given types.

pub fn unit() -> Self[src]

Creates a new unit tuple to represent the unit type, ().

Trait Implementations

impl<F: Clone + Form> Clone for TypeDefTuple<F> where
    F::TypeId: Clone
[src]

impl<F: Debug + Form> Debug for TypeDefTuple<F> where
    F::TypeId: Debug
[src]

impl<F: Eq + Form> Eq for TypeDefTuple<F> where
    F::TypeId: Eq
[src]

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

impl From<TypeDefTuple<MetaForm>> for Type[src]

impl IntoCompact for TypeDefTuple[src]

type Output = TypeDefTuple<CompactForm>

The compact version of Self.

impl<F: Ord + Form> Ord for TypeDefTuple<F> where
    F::TypeId: Ord
[src]

impl<F: PartialEq + Form> PartialEq<TypeDefTuple<F>> for TypeDefTuple<F> where
    F::TypeId: PartialEq
[src]

impl<F: PartialOrd + Form> PartialOrd<TypeDefTuple<F>> for TypeDefTuple<F> where
    F::TypeId: PartialOrd
[src]

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

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

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

Auto Trait Implementations

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

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

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

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

impl<F> UnwindSafe for TypeDefTuple<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.