pub trait TupleReverse {
type Output;
// Required method
fn reverse(self) -> Self::Output;
}Expand description
A trait for reversing the elements of a tuple.
This trait provides a method to reverse the order of elements in a tuple.
§Examples
use tuplities_reverse::TupleReverse;
let tuple = (1, "hello", 3.14);
let reversed = tuple.reverse();
assert_eq!(reversed, (3.14, "hello", 1));Part of the tuplities crate.