Trait basic_dsp_vector::RededicateToOps

source ·
pub trait RededicateToOps<Other>
where Other: MetaData,
{ // Required method fn rededicate(self) -> Other; }
Expand description

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§

source

fn rededicate(self) -> Other

Converts Self inot Other.

Implementors§

source§

impl<S, T, N, D, O> RededicateToOps<O> for DspVec<S, T, N, D>
where S: ToSlice<T>, T: RealNumber, N: NumberSpace, D: Domain, O: Vector<T> + RededicateOps<Self>,