Trait tuple_types::TupleExt

source ·
pub trait TupleExt {
    // Required methods
    fn types() -> Vec<Type>;
    fn type_ids() -> Vec<TypeId>;
    fn type_names() -> Vec<&'static str>;

    // Provided methods
    fn self_types(&self) -> Vec<Type> { ... }
    fn self_type_ids(&self) -> Vec<TypeId> { ... }
    fn self_type_names(&self) -> Vec<&'static str> { ... }
}
Expand description

Extension Trait that adds the TupleExt::types, TupleExt::type_ids and TupleExt::type_names functions along with methods with the prefix self_.

Required Methods§

source

fn types() -> Vec<Type>

Returns the types that make up the tuple with TupleExt is implemented on.

source

fn type_ids() -> Vec<TypeId>

Returns the TypeIds of the type with TupleExt is implemented on.

source

fn type_names() -> Vec<&'static str>

Provided Methods§

source

fn self_types(&self) -> Vec<Type>

Method version of TupleExt::types.

source

fn self_type_ids(&self) -> Vec<TypeId>

Method version of TupleExt::type_ids.

source

fn self_type_names(&self) -> Vec<&'static str>

Method version of TupleExt::type_names.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TupleExt for ()

source§

impl<T1: 'static> TupleExt for (T1,)

source§

impl<T1: 'static, T2: 'static> TupleExt for (T1, T2)

source§

impl<T1: 'static, T2: 'static, T3: 'static> TupleExt for (T1, T2, T3)

source§

impl<T1: 'static, T2: 'static, T3: 'static, T4: 'static> TupleExt for (T1, T2, T3, T4)

source§

impl<T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static> TupleExt for (T1, T2, T3, T4, T5)

source§

impl<T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static> TupleExt for (T1, T2, T3, T4, T5, T6)

source§

impl<T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static> TupleExt for (T1, T2, T3, T4, T5, T6, T7)

Implementors§