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
Required Methods§
fn fill_or_alloc(&mut self, new_len: usize, value: T)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".