[][src]Trait agnes::view::Unique

pub trait Unique<LabelList> {
    type Output;
    fn unique_indices(&self) -> Vec<usize>;
fn unique_values(&self) -> Self::Output; }

Trait providing methods for finding the unique indices and values for a DataView. See the intrinsic methods unique_indices and unique_values for more details.

Associated Types

type Output

Output of the unique_values method.

Loading content...

Required methods

fn unique_indices(&self) -> Vec<usize>

Compute the unique indices for fields with labels in LabelList. See the intrinsic method unique_indices for more details.

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

Compute the unique values for fields with labels in LabelList. See the intrinsic method unique_values for more details.

Loading content...

Implementors

impl<Labels, Frames, LabelList> Unique<LabelList> for DataView<Labels, Frames> where
    Labels: FieldList<LabelList, Frames> + HasLabels<LabelList> + LabelSubset<LabelList> + FrameIndexList,
    <Labels as FieldList<LabelList, Frames>>::Output: HashIndex + PartialEqIndex,
    <Labels as LabelSubset<LabelList>>::Output: Reorder<LabelList>,
    Frames: NRows + SubsetClone<<Labels as FrameIndexList>::LabelList>,
    <Frames as SubsetClone<<Labels as FrameIndexList>::LabelList>>::Output: UpdatePermutation
[src]

type Output = DataView<<<Labels as LabelSubset<LabelList>>::Output as Reorder<LabelList>>::Output, <Frames as SubsetClone<<Labels as FrameIndexList>::LabelList>>::Output>

Loading content...