pub trait Points {
// Required methods
fn matrix(&self) -> &DMatrix<f64>;
fn matrix_mut(&mut self) -> &mut DMatrix<f64>;
// Provided methods
fn get(&self, index: usize) -> Option<DVectorView<'_, f64>> { ... }
fn get_mut(&mut self, index: usize) -> Option<DVectorViewMut<'_, f64>> { ... }
fn dimension(&self) -> usize { ... }
fn count(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
}Expand description
Common accessors for point sets stored as one column per point.
Required Methods§
Sourcefn matrix_mut(&mut self) -> &mut DMatrix<f64>
fn matrix_mut(&mut self) -> &mut DMatrix<f64>
Returns the mutable coordinate matrix holding one point per column.
Provided Methods§
Sourcefn get(&self, index: usize) -> Option<DVectorView<'_, f64>>
fn get(&self, index: usize) -> Option<DVectorView<'_, f64>>
Returns a view of the i-th point, or None if the index is out of range.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".