pub trait AsTupleOfRefs<'a>: Tuple {
type TupleOfRefs: Tuple + 'a;
type TupleOfMutRefs: Tuple + 'a;
// Required methods
fn as_tuple_of_refs(&'a self) -> Self::TupleOfRefs;
fn as_tuple_of_mut_refs(&'a mut self) -> Self::TupleOfMutRefs;
}Expand description
Trait providing conversion from references to tuples into tuples of references.
Generic trait implemented for all tuples (up to 12 elements).
§Example
Required Associated Types§
type TupleOfRefs: Tuple + 'a
type TupleOfMutRefs: Tuple + 'a
Required Methods§
Sourcefn as_tuple_of_refs(&'a self) -> Self::TupleOfRefs
fn as_tuple_of_refs(&'a self) -> Self::TupleOfRefs
Converts reference to tuple into tuple of references.
Sourcefn as_tuple_of_mut_refs(&'a mut self) -> Self::TupleOfMutRefs
fn as_tuple_of_mut_refs(&'a mut self) -> Self::TupleOfMutRefs
Converts mutable reference to tuple into tuple of mutable references.
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.