pub trait SplitAt<Idx>: IndexRange<Idx> {
// Required method
fn split_at(
&self,
index: Idx,
) -> (&<Self as Index<RangeFull>>::Output, &<Self as Index<RangeFull>>::Output);
}Expand description
A trait for splitting a collection into two pieces at a given index.
Splitting a collection must take a constant amount of time and space.