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§
Sourcefn types() -> Vec<Type>
fn types() -> Vec<Type>
Returns the types that make up the tuple with TupleExt is implemented on.
fn type_names() -> Vec<&'static str>
Provided Methods§
Sourcefn self_types(&self) -> Vec<Type>
fn self_types(&self) -> Vec<Type>
Method version of TupleExt::types.
Sourcefn self_type_ids(&self) -> Vec<TypeId>
fn self_type_ids(&self) -> Vec<TypeId>
Method version of TupleExt::type_ids.
Sourcefn self_type_names(&self) -> Vec<&'static str>
fn self_type_names(&self) -> Vec<&'static str>
Method version of TupleExt::type_names.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.