[][src]Trait agnes::view::SelectFieldFromLabels

pub trait SelectFieldFromLabels<Labels, Label> {
    type DType;
    type Output: DataIndex<DType = Self::DType>;
    fn select_field(&self) -> Self::Output;
}

Trait for selecting a field (implementing DataIndex) associated with the label Label from the label lookup list Labels from a type.

Associated Types

type DType

Data type of field accessor

type Output: DataIndex<DType = Self::DType>

Selected field accessor.

Loading content...

Required methods

fn select_field(&self) -> Self::Output

Returns an accessor (implementing DataIndex) for the selected field.

Loading content...

Implementors

impl<Labels, Frames, Label> SelectFieldFromLabels<Labels, Label> for Frames where
    Labels: FindFrameDetails<Label>,
    Frames: FindFrame<Labels, Label>,
    FrameOf<Frames, Labels, Label>: SelectFieldByLabel<FrameLabelOf<Labels, Label>>,
    FieldOf<Frames, Labels, Label>: SelfValued + Clone,
    FieldTypeOf<Frames, Labels, Label>: Debug
[src]

type DType = FieldTypeOf<Frames, Labels, Label>

type Output = FieldOf<Frames, Labels, Label>

Loading content...