1/// Vec container with a getter that clears the vec.
2#[derive(Default)]
3pub struct ScratchVec<T>(Vec<T>);
45impl<T> ScratchVec<T> {
6/// Clear the vec and return a mutable reference to it.
7pub fn get(&mut self) -> &mut Vec<T> {
8self.0.clear();
9&mut self.0
10}
11}