Skip to main content

MatLayout

Trait MatLayout 

Source
pub trait MatLayout:
    Copy
    + Clone
    + Send
    + Sync
    + Debug {
    // Required method
    fn layout(&self) -> MatLayouts;

    // Provided method
    fn to_index(
        &self,
        row: usize,
        col: usize,
        nrow: usize,
        ncol: usize,
    ) -> usize { ... }
}

Required Methods§

Provided Methods§

Source

fn to_index(&self, row: usize, col: usize, nrow: usize, ncol: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§