pub trait ResizeFaster<T: Copy> {
// Required method
fn fill_or_alloc(&mut self, new_len: usize, value: T);
}
Expand description
Fill current allocation if > 0 otherwise realloc
pub trait ResizeFaster<T: Copy> {
// Required method
fn fill_or_alloc(&mut self, new_len: usize, value: T);
}
Fill current allocation if > 0 otherwise realloc