Trait Indexable

Source
pub trait Indexable {
    type Index: Dimension;

    // Required method
    fn dim(&self) -> Self::Index;
}
Expand description

Trait for objects that have an indexable dimension.

This trait is used to define objects that have a specific dimensionality, allowing for operations that depend on the size and shape of the object.

Required Associated Types§

Source

type Index: Dimension

The type representing the dimension of the object.

Required Methods§

Source

fn dim(&self) -> Self::Index

Returns the dimension of the object.

§Returns
  • Self::Index: The dimension of the object.

Implementors§

Source§

impl<E, const ROWS: usize, const COLS: usize, Descriptor: Descriptor> Indexable for Mat<ROWS, COLS, E, Descriptor>
where E: MatEl,