Trait basic_dsp::Resize

source ·
pub trait Resize {
    // Required method
    fn resize(&mut self, len: usize);
}
Expand description

A trait for storage types which are known to have the capability to increase their capacity.

Required Methods§

source

fn resize(&mut self, len: usize)

Resize a storage type. Must work for any value of len, however it’s okay if after this method self.alloc_len() > len or in words: It’s okay if the method allocates more memory than specified in the parameter.

Implementations on Foreign Types§

source§

impl<T> Resize for Vec<T>
where T: RealNumber,

source§

fn resize(&mut self, len: usize)

Implementors§