Trait AsIx3

Source
pub trait AsIx3 {
    // Required method
    fn as_ix3(self) -> Dim<[usize; 3]>;
}
Expand description

Trait for converting a type into a 3-dimensional index (Ix3).

This trait is implemented for various types, allowing them to be converted into a 3D index, which is useful for indexing into 3D arrays or grids.

Required Methods§

Source

fn as_ix3(self) -> Dim<[usize; 3]>

Converts the implementing type into a 3D index (Ix3).

§Returns
  • Ix3: The 3-dimensional index.

Implementations on Foreign Types§

Source§

impl AsIx3 for &[usize]

Source§

fn as_ix3(self) -> Dim<[usize; 3]>

Source§

impl AsIx3 for (usize, usize, usize)

Source§

fn as_ix3(self) -> Dim<[usize; 3]>

Source§

impl AsIx3 for [usize; 3]

Source§

fn as_ix3(self) -> Dim<[usize; 3]>

Implementors§

Source§

impl AsIx3 for Dim<[usize; 3]>