Struct pointcloud::SimpleNamedCloud[][src]

pub struct SimpleNamedCloud<D, N> { /* fields omitted */ }

Simply shoves together a point cloud and a name set, for a modular name system

Implementations

impl<D: PointCloud, N: NamedSet> SimpleNamedCloud<D, N>[src]

pub fn new(data: D, names: N) -> Self[src]

Creates a new one

Trait Implementations

impl<D: Debug, N: Debug> Debug for SimpleNamedCloud<D, N>[src]

impl<D: PointCloud, N: NamedSet> PointCloud for SimpleNamedCloud<D, N>[src]

type Metric = D::Metric

Underlying metric this point cloud uses

type Point = D::Point

The derefrenced, raw point. Think f32

type PointRef = D::PointRef

A reference to a point. Think &’a f32 Read more

type Metadata = D::Metadata

Underlying metadata

type MetaSummary = D::MetaSummary

A summary of the underlying metadata

type Label = D::Label

The label type. Summary of a set of labels Read more

type LabelSummary = D::LabelSummary

Summary of a set of labels

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

Expensive metadata summary over the samples

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.

fn name(&self, pi: usize) -> PointCloudResult<String>[src]

Grabs the name of the point. Returns an error if the access errors out, and a None if the name is unknown

fn index(&self, pn: &str) -> PointCloudResult<usize>[src]

Converts a name to an index you can use

fn names(&self) -> Vec<String>[src]

Gather’s all valid known names

Auto Trait Implementations

impl<D, N> RefUnwindSafe for SimpleNamedCloud<D, N> where
    D: RefUnwindSafe,
    N: RefUnwindSafe

impl<D, N> Send for SimpleNamedCloud<D, N> where
    D: Send,
    N: Send

impl<D, N> Sync for SimpleNamedCloud<D, N> where
    D: Sync,
    N: Sync

impl<D, N> Unpin for SimpleNamedCloud<D, N> where
    D: Unpin,
    N: Unpin

impl<D, N> UnwindSafe for SimpleNamedCloud<D, N> where
    D: UnwindSafe,
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.