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§
fn with_capacity(capacity: usize) -> Self
fn positions(&self) -> &[Position] ⓘ
fn add_point(&mut self, p: Self::Point) -> &mut Self
Provided Methods§
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.