Enum basic_dsp::Operation [] [src]

pub enum Operation<T> {
    AddReal(T),
    AddComplex(Complex<T>),
    MultiplyReal(T),
    MultiplyComplex(Complex<T>),
    AbsReal,
    AbsComplex,
    Sqrt,
}

An alternative way to define operations on a vector. Warning: Highly unstable and not even fully implemented right now.

In future this enum will likely be deleted or hidden and be replaced with a builder pattern. The advantage of this is that with the builder we have the means to define at compile time what kind of vector will result from the given set of operations.

Variants

AddReal(T)AddComplex(Complex<T>)MultiplyReal(T)MultiplyComplex(Complex<T>)AbsRealAbsComplexSqrt

Trait Implementations

impl<T: Copy> Copy for Operation<T>
[src]

impl<T: Clone> Clone for Operation<T>
[src]

fn clone(&self) -> Operation<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Operation<T>
[src]

fn eq(&self, __arg_0: &Operation<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Operation<T>) -> bool

This method tests for !=.

impl<T: Debug> Debug for Operation<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.