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
Loading content...Required methods
fn dense_iter(&self) -> Self::DenseIter
[src]
The actual call to the dense iterator that PointCloud
uses.
Provided methods
fn dense(&self) -> Vec<f32>
[src]
provided because this could be faster than iteration (for example a memcpy).
Implementations on Foreign Types
impl<'a> PointRef for &'a [i8]
[src]
impl<'a> PointRef for &'a [i8]
[src]type DenseIter = Converteri8<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
impl<'a> PointRef for &'a [u8]
[src]
impl<'a> PointRef for &'a [u8]
[src]type DenseIter = Converteru8<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
impl<'a> PointRef for &'a [i16]
[src]
impl<'a> PointRef for &'a [i16]
[src]type DenseIter = Converteri16<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
impl<'a> PointRef for &'a [u16]
[src]
impl<'a> PointRef for &'a [u16]
[src]type DenseIter = Converteru16<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
impl<'a> PointRef for &'a [i32]
[src]
impl<'a> PointRef for &'a [i32]
[src]type DenseIter = Converteri32<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
impl<'a> PointRef for &'a [u32]
[src]
impl<'a> PointRef for &'a [u32]
[src]type DenseIter = Converteru32<'a>
fn dense(&self) -> Vec<f32>
[src]
fn dense_iter(&self) -> Self::DenseIter
[src]
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]
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]