[][src]Struct scale_info::TypeDefTuple

pub struct TypeDefTuple<T: 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, ().

impl<T> TypeDefTuple<T> where
    T: Form
[src]

pub fn fields(&self) -> &[T::Type]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

Returns the types of the tuple fields.

Trait Implementations

impl<T: Clone + Form> Clone for TypeDefTuple<T> where
    T::Type: Clone
[src]

impl<T: Debug + Form> Debug for TypeDefTuple<T> where
    T::Type: Debug
[src]

impl<T: Form> Decode for TypeDefTuple<T> where
    Vec<T::Type>: Decode,
    Vec<T::Type>: Decode
[src]

impl<'de, T: Form> Deserialize<'de> for TypeDefTuple<T> where
    T::Type: DeserializeOwned
[src]

impl<T: Form> Encode for TypeDefTuple<T> where
    Vec<T::Type>: Encode,
    Vec<T::Type>: Encode
[src]

impl<T: Form> EncodeLike<TypeDefTuple<T>> for TypeDefTuple<T> where
    Vec<T::Type>: Encode,
    Vec<T::Type>: Encode
[src]

impl<T: Eq + Form> Eq for TypeDefTuple<T> where
    T::Type: Eq
[src]

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

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

impl IntoCompact for TypeDefTuple[src]

type Output = TypeDefTuple<CompactForm>

The compact version of Self.

impl<T: Ord + Form> Ord for TypeDefTuple<T> where
    T::Type: Ord
[src]

impl<T: PartialEq + Form> PartialEq<TypeDefTuple<T>> for TypeDefTuple<T> where
    T::Type: PartialEq
[src]

impl<T: PartialOrd + Form> PartialOrd<TypeDefTuple<T>> for TypeDefTuple<T> where
    T::Type: PartialOrd
[src]

impl<T: Form> Serialize for TypeDefTuple<T> where
    T::Type: Serialize
[src]

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

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

Auto Trait Implementations

impl<T> RefUnwindSafe for TypeDefTuple<T> where
    <T as Form>::Type: RefUnwindSafe

impl<T> Send for TypeDefTuple<T> where
    <T as Form>::Type: Send

impl<T> Sync for TypeDefTuple<T> where
    <T as Form>::Type: Sync

impl<T> Unpin for TypeDefTuple<T> where
    <T as Form>::Type: Unpin

impl<T> UnwindSafe for TypeDefTuple<T> where
    <T as Form>::Type: 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<S> Codec for S where
    S: Encode + Decode
[src]

impl<T, X> Decode for X where
    T: Decode + Into<X>,
    X: WrapperTypeDecode<Wrapped = T>, 
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T, X> Encode for X where
    T: Encode + ?Sized,
    X: WrapperTypeEncode<Target = T>, 
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

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

impl<T> KeyedVec for T where
    T: Codec
[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.