[][src]Trait basic_dsp_vector::ComplexIndex

pub trait ComplexIndex<Idx> where
    Idx: Sized
{ type Output: ?Sized; fn complex(&self, index: Idx) -> &Self::Output; }

Like std::ops::Index but with a different method name so that it can be used to implement an additional range accessor for complex data.

Note if indexers will return an empty array in case the vector isn't complex.

Associated Types

type Output: ?Sized

Loading content...

Required methods

fn complex(&self, index: Idx) -> &Self::Output

The method for complex indexing

Loading content...

Implementors

impl<S, T, N, D> ComplexIndex<usize> for DspVec<S, T, N, D> where
    S: ToSlice<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: Domain
[src]

type Output = Complex<T>

impl<S, T, N, D> ComplexIndex<Range<usize>> for DspVec<S, T, N, D> where
    S: ToSlice<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: Domain
[src]

type Output = [Complex<T>]

impl<S, T, N, D> ComplexIndex<RangeFrom<usize>> for DspVec<S, T, N, D> where
    S: ToSlice<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: Domain
[src]

type Output = [Complex<T>]

impl<S, T, N, D> ComplexIndex<RangeFull> for DspVec<S, T, N, D> where
    S: ToSlice<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: Domain
[src]

type Output = [Complex<T>]

impl<S, T, N, D> ComplexIndex<RangeTo<usize>> for DspVec<S, T, N, D> where
    S: ToSlice<T>,
    T: RealNumber,
    N: ComplexNumberSpace,
    D: Domain
[src]

type Output = [Complex<T>]

Loading content...