pub trait TupleSplitAt<const MIDDLE: usize>: Tuple {
type Left: Tuple;
type Right: Tuple;
// Required method
fn split_tuple_at(self) -> (Self::Left, Self::Right);
}Expand description
Tuples which may be split at index MIDDLE have the trait TupleSplitAt,
which, when split, returns TupleSplitAt::Left, TupleSplitAt::Right.
§Example
let t: (u8, f32, &str) = (1, 1.0, "test");
let (l, r): ((u8, f32), (&str,)) = tuple_split::split_tuple_at::<2>(t);
assert_eq!(t, tupleops::concat_tuples(l, r));