pub trait Splittable<'a, SplitType = ()> {
type A: 'a;
type B: 'a;
type MutA: 'a;
type MutB: 'a;
// Required methods
fn split(&'a self) -> (Self::A, Self::B);
fn split_mut(&'a mut self) -> (Self::MutA, Self::MutB);
}
Expand description
A type which can be split into disjoint references. SplitType allows a type to be split multiple