[][src]Struct pointcloud::labels::MetadataList

pub struct MetadataList { /* fields omitted */ }

This is a pair of IndexMaps. One that stores the name to index, the second that stores the

Methods

impl MetadataList[src]

pub fn get(&self, i: usize) -> Result<Metadata, PointCloudError>[src]

Grabs the correct value from each columnar data list and adds them to an index map, then returns it to the user. Errors out if the data was inaccessible

pub fn get_set(
    &self,
    indexes: &[usize]
) -> Result<MetadataList, PointCloudError>
[src]

Grabs the metadata for all elements of your subset and returns a smaller MetadataList. Errors out if the data was inaccessible

pub fn get_summary(
    &self,
    indexes: &[usize]
) -> Result<MetaSummary, PointCloudError>
[src]

Grabs the metadata for all elements of your subset and returns a summary of the underlying data. Errors out if the data was inaccessible

pub fn push(
    &mut self,
    name: Option<PointName>,
    label: Metadata
) -> Result<(), PointCloudError>
[src]

Appends a the values contained in a metadata list to our metadata. Errors out if you are missing a key that the map has.

pub fn scheme(&self) -> Result<LabelScheme, PointCloudError>[src]

Outputs the scheme of the metadata. This is useful for creating new metadata object off of other data.

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

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

Trait Implementations

impl Debug for MetadataList[src]

Auto Trait Implementations

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, 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.