[][src]Trait pointcloud::Summary

pub trait Summary: Debug + Default + Send + Sync + 'static {
    type Label: ?Sized;
    fn add(&mut self, v: PointCloudResult<Option<&Self::Label>>);
fn combine(&mut self, other: &Self);
fn count(&self) -> usize;
fn nones(&self) -> usize;
fn errors(&self) -> usize; }

A summary for labels and metadata. You can make this an empty zero sized type for when you don't need it.

Associated Types

type Label: ?Sized

Underlying type.

Loading content...

Required methods

fn add(&mut self, v: PointCloudResult<Option<&Self::Label>>)

Adding a single value to the summary.

fn combine(&mut self, other: &Self)

Merging several summaries of your data source together. This results in a summary of underlying column over the union of the indexes used to create the input summaries.

fn count(&self) -> usize

The number of elements this summary covers

fn nones(&self) -> usize

The number of elements that were unlabeled that this summary covers

fn errors(&self) -> usize

The number of errors this summary covers that the label could not be found

Loading content...

Implementors

impl Summary for CategorySummary[src]

type Label = u64

impl Summary for StringSummary[src]

type Label = String

impl Summary for VecSummary[src]

type Label = [f32]

Loading content...