polars_utils::vec

Trait ResizeFaster

Source
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§

Source

fn fill_or_alloc(&mut self, new_len: usize, value: T)

Implementations on Foreign Types§

Source§

impl<T: Copy + Zero + PartialEq> ResizeFaster<T> for Vec<T>

Source§

fn fill_or_alloc(&mut self, new_len: usize, value: T)

Implementors§