pub trait AsTargetsMut {
    type Elem;
    type Ix: TargetDim;

    // Required method
    fn as_targets_mut(&mut self) -> ArrayViewMut<'_, Self::Elem, Self::Ix>;
}
Expand description

Return a mutable reference to single or multiple target variables.

This is generic over the dimension of the target array to support both single-target and multi-target variables.

Required Associated Types§

Required Methods§

source

fn as_targets_mut(&mut self) -> ArrayViewMut<'_, Self::Elem, Self::Ix>

Implementations on Foreign Types§

source§

impl<L, S: DataMut<Elem = L>, I: TargetDim> AsTargetsMut for ArrayBase<S, I>

§

type Elem = L

§

type Ix = I

source§

fn as_targets_mut(&mut self) -> ArrayViewMut<'_, Self::Elem, I>

Implementors§

source§

impl<L, R: Records, T: AsTargetsMut<Elem = L>> AsTargetsMut for DatasetBase<R, T>

§

type Elem = L

§

type Ix = <T as AsTargetsMut>::Ix

source§

impl<L: Label, T: AsTargetsMut<Elem = L>> AsTargetsMut for CountedTargets<L, T>

§

type Elem = L

§

type Ix = <T as AsTargetsMut>::Ix