[][src]Enum pointcloud::PointRef

pub enum PointRef<'a> {
    Dense(&'a [f32]),
    Sparse(&'a [f32]&'a [u32]),
}

Reference to a point inside of a dataset.

Variants

Dense(&'a [f32])

Dense reference

Sparse reference, values, then indexes

Implementations

impl<'a> PointRef<'a>[src]

pub fn dense_iter(&self, dim: usize) -> DenseIter<'a>[src]

Gives an iterator that lets you treat the point reference as a dense vector

Trait Implementations

impl<'a> Clone for PointRef<'a>[src]

impl<'a> Copy for PointRef<'a>[src]

impl<'a> Debug for PointRef<'a>[src]

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

impl<'a> From<&'a Point> for PointRef<'a>[src]

impl<'a, T: AsRef<[f32]>> From<&'a T> for PointRef<'a>[src]

impl<'b, 'a: 'b> From<&'b PointRef<'a>> for PointRef<'a>[src]

impl<'b, 'a: 'b, 'c: 'b> From<&'c &'b PointRef<'a>> for PointRef<'a>[src]

impl<'a> From<(&'a [f32], &'a [u32])> for PointRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for PointRef<'a>

impl<'a> Send for PointRef<'a>

impl<'a> Sync for PointRef<'a>

impl<'a> Unpin for PointRef<'a>

impl<'a> UnwindSafe for PointRef<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,