Trait basic_dsp_vector::RededicateToOps [] [src]

pub trait RededicateToOps<Other> {
    fn rededicate(self) -> Other;
}

This trait allows to change a data type. The operations will convert a type to a different one and set self.len() to zero. However self.allocated_len() will remain unchanged. The use case for this is to allow to reuse the memory of a vector for different operations.

Required Methods

Make Selfr a SelOther.

Implementors