[−][src]Trait tuple_list::AsTupleOfRefs
Trait providing conversion from references to tuples into tuples of references.
Generic trait implemented for all tuples (up to 12 elements).
Example
use tuple_list::AsTupleOfRefs; fn by_val(tuple: (i32, i32)) {} fn by_ref(tuple: (&i32, &i32)) {} fn by_mut(tuple: (&mut i32, &mut i32)) {} let mut tuple = (1, 2); by_val(tuple); by_ref(tuple.as_tuple_of_refs()); by_mut(tuple.as_tuple_of_mut_refs());Run
Associated Types
type TupleOfRefs: Tuple + 'a
type TupleOfMutRefs: Tuple + 'a
Required methods
fn as_tuple_of_refs(&'a self) -> Self::TupleOfRefs
Converts reference to tuple into tuple of references.
fn as_tuple_of_mut_refs(&'a mut self) -> Self::TupleOfMutRefs
Converts mutable reference to tuple into tuple of mutable references.