pub trait TupleRemoveExact<const POS: usize> {
type Output;
// Required method
fn remove(self) -> Self::Output;
}
Expand description
Remove a value from a tuple.
This is internally used behind the TupleRemove
trait for convenience.
However, if something goes wrong with the trait solver, this trait can also be used explicitly.
§Example
use rs_std_ext::tuple::TupleRemoveExact;
let x = (10u8, 'a', -5i32);
let y = <(u8, char, i32) as TupleRemoveExact<1>>::remove(x);
assert_eq!(y, (10u8, -5i32));