Trait linera_witty::Split
source · pub trait Split<Target> {
type Remainder;
// Required method
fn split(self) -> (Target, Self::Remainder);
}
Expand description
Compile time splitting of heterogeneous lists.
Allows splitting a heterogeneous list at a certain point, determined by the Target
type,
which should match this list type until a certain element. The list after that point is
returned as the Remainder
type.