Trait pointcloud::LabelSet[][src]

pub trait LabelSet: Debug + Send + Sync + 'static {
    type Label: ?Sized + Serialize;
    type LabelSummary: Summary<Label = Self::Label>;
    fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>;
fn label_summary(
        &self,
        pns: &[usize]
    ) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>; }

A trait for a container that just holds labels. Meant to be used in conjunction with SimpleLabeledCloud to be and easy label or metadata object.

Associated Types

type Label: ?Sized + Serialize[src]

Underlying type.

type LabelSummary: Summary<Label = Self::Label>[src]

Summary of a set of labels

Loading content...

Required methods

fn len(&self) -> usize[src]

Number of elements in this label set

fn is_empty(&self) -> bool[src]

If there are no elements left in this label set

fn label(&self, pn: usize) -> PointCloudResult<Option<&Self::Label>>[src]

Grabs a label reference. Supports errors (the label could be remote), and partially labeled datasets with the option.

fn label_summary(
    &self,
    pns: &[usize]
) -> PointCloudResult<SummaryCounter<Self::LabelSummary>>
[src]

Grabs a label summary of a set of indexes.

Loading content...

Implementors

Loading content...