(&mut self, out: &mut Vec<u8>)
| 27 | |
| 28 | impl<T: Encode> Buffer for VecEncoder<T> { |
| 29 | fn collect_into(&mut self, out: &mut Vec<u8>) { |
| 30 | self.lengths.collect_into(out); |
| 31 | self.elements.collect_into(out); |
| 32 | } |
| 33 | |
| 34 | fn reserve(&mut self, additional: NonZeroUsize) { |
| 35 | self.lengths.reserve(additional); |