pub trait TupleZip<T> {
type Output;
// Required method
fn zip(self, val: T) -> Self::Output;
}
Expand description
Zip a tuple with another single value.
For concating two tuples, see TupleConcat
for more details.
§Example
use rs_std_ext::tuple::TupleZip;
let x = (10u8, 'a');
let y = x.zip(-5i32);
assert_eq!(y, (10u8, 'a', -5i32));