Trait basic_dsp::ComplexIndex

source ·
pub trait ComplexIndex<Idx> {
    type Output: ?Sized;

    // Required method
    fn datac(&self, index: Idx) -> &Self::Output;
}
Expand description

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.

Required Associated Types§

Required Methods§

source

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

The method for complex indexing

Implementors§

source§

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

§

type Output = Complex<T>

source§

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

§

type Output = [Complex<T>]

source§

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

§

type Output = [Complex<T>]

source§

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

§

type Output = [Complex<T>]

source§

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

§

type Output = [Complex<T>]