Trait Resize
Other items inbasic_dsp
pub trait Resize { fn resize(&mut self, len: usize); }
A trait for storage types which are known to have the capability to increase their capacity.
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.
len
self.alloc_len() > len
impl<T> Resize for Vec<T, Global> where T: RealNumber,
pub fn resize(&mut self, len: usize)