PointCloud

Trait PointCloud 

Source
pub trait PointCloud: Default {
    type Point;

    // Required methods
    fn with_capacity(capacity: usize) -> Self;
    fn positions(&self) -> &[Position] ;
    fn add_point(&mut self, p: Self::Point) -> &mut Self;

    // Provided methods
    fn new() -> Self { ... }
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

Source

fn with_capacity(capacity: usize) -> Self

Source

fn positions(&self) -> &[Position]

Source

fn add_point(&mut self, p: Self::Point) -> &mut Self

Provided Methods§

Source

fn new() -> Self

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§