pub trait RowIndexMap: Send + Sync {
// Required methods
fn height(&self) -> usize;
fn map_row_index(&self, r: usize) -> usize;
// Provided method
fn to_row_major_matrix<T: Clone + Send + Sync, Inner: Matrix<T>>(
&self,
inner: Inner,
) -> RowMajorMatrix<T> { ... }
}
Expand description
A RowIndexMap remaps row indices, and can change the height.
Required Methods§
Provided Methods§
Sourcefn to_row_major_matrix<T: Clone + Send + Sync, Inner: Matrix<T>>(
&self,
inner: Inner,
) -> RowMajorMatrix<T>
fn to_row_major_matrix<T: Clone + Send + Sync, Inner: Matrix<T>>( &self, inner: Inner, ) -> RowMajorMatrix<T>
Permutations can optionally provide an optimized method to convert to dense form.
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.