Trait basic_dsp::FloatIndex

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

    // Required method
    fn data(&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 float data.

Required Associated Types§

Required Methods§

source

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

The method for float indexing. If the vector is real valued then this function just returns the values

Implementors§

source§

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

§

type Output = T

source§

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

§

type Output = [T]

source§

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

§

type Output = [T]

source§

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

§

type Output = [T]

source§

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

§

type Output = [T]