Trait polars_utils::vec::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 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§