split_spare/
lib.rs

1pub mod vec;
2
3pub trait SplitSpare<T> {
4    type Spare<'s>: ::std::iter::Extend<T>
5    where
6        Self: 's;
7
8    fn split_spare<'s>(&'s mut self) -> (&'s mut [T], Self::Spare<'s>);
9
10    /// Convenience function to reserve and then `split_spare`.
11    fn reserve_split_spare<'s>(&'s mut self, additional: usize) -> (&'s mut [T], Self::Spare<'s>);
12}