pub trait TupleSplitIntoRight<R>: Tuplewhere
R: Tuple,{
type Left: Tuple;
// Required method
fn split_tuple_into_right(self) -> (Self::Left, R);
}Expand description
A trait for splitting a tuple up into two parts given a specified right part R. R must be a rightmost segment of Self.
Tuples will be split into parts TupleSplitIntoRight::Left and R.
§Example
let t: (u8, f32, &str) = (1, 1.0, "test");
let (l, r): ((u8, f32), (&str,)) = tuple_split::split_tuple_into_left::<(u8, f32)>(t);
assert_eq!(t, tupleops::concat_tuples(l, r));