Trait basic_dsp_vector::ComplexIndex
[−]
[src]
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
Required Methods
Implementors
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>;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>];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>];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>];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>];