pub trait FromTargetArray<'a>: AsTargets {
    type Owned;
    type View;

    fn new_targets(targets: Array<Self::Elem, Self::Ix>) -> Self::Owned;
    fn new_targets_view(
        targets: ArrayView<'a, Self::Elem, Self::Ix>
    ) -> Self::View; }
Expand description

Helper trait to construct counted labels

This is implemented for objects which can act as targets and created from a target matrix. For targets represented as ndarray matrix this is identity, for counted labels, i.e. TargetsWithLabels, it creates the corresponding wrapper struct.

Required Associated Types§

Required Methods§

Create self object from new target array

Implementations on Foreign Types§

Returns an owned representation of the target array

Returns a reference to the target array

Implementors§