Function tupleops::ref_tuple[][src]

pub fn ref_tuple<'a, Tpl>(tpl: &'a Tpl) -> RefTuple<'a, Tpl> where
    &'a Tpl: TupleRef<'a, Tpl>, 
This is supported on crate feature ref only.
Expand description

Turn a reference to a tuple into a tuple of references.

use tupleops::ref_tuple;

assert_eq!(
    ref_tuple(&(1, 2, 3)),
    (&1, &2, &3),
);

See also: RefTuple, TupleRef.