Trait pointcloud::PointRef[][src]

pub trait PointRef: Send + Sync {
    type DenseIter: Iterator<Item = f32>;
    fn dense_iter(&self) -> Self::DenseIter;

    fn dense(&self) -> Vec<f32> { ... }
}

A trait to ensure that we can create matrices and statiscial vectors from your point reference.

See crate::points for some pre-baked implementations.

Associated Types

type DenseIter: Iterator<Item = f32>[src]

The iterator type for this reference.

Loading content...

Required methods

fn dense_iter(&self) -> Self::DenseIter[src]

The actual call to the dense iterator that PointCloud uses.

Loading content...

Provided methods

fn dense(&self) -> Vec<f32>[src]

provided because this could be faster than iteration (for example a memcpy).

Loading content...

Implementations on Foreign Types

impl<'a> PointRef for &'a [f32][src]

type DenseIter = Copied<Iter<'a, f32>>

impl<'a> PointRef for &'a [i8][src]

type DenseIter = Converteri8<'a>

impl<'a> PointRef for &'a [u8][src]

type DenseIter = Converteru8<'a>

impl<'a> PointRef for &'a [i16][src]

type DenseIter = Converteri16<'a>

impl<'a> PointRef for &'a [u16][src]

type DenseIter = Converteru16<'a>

impl<'a> PointRef for &'a [i32][src]

type DenseIter = Converteri32<'a>

impl<'a> PointRef for &'a [u32][src]

type DenseIter = Converteru32<'a>

Loading content...

Implementors

impl<'a, T, S> PointRef for SparseRef<'a, T, S> where
    T: Debug + Copy + Into<f32> + Send + Sync,
    S: TryInto<usize> + Ord + TryFrom<usize> + Debug + Copy + Send + Sync + 'static, 
[src]

type DenseIter = SparseDenseIter<'a, T, S>

Loading content...