orx_v

Trait IntoIdx

Source
pub trait IntoIdx<D: Dim>:
    Sized
    + Copy
    + Debug {
    // Required method
    fn into_idx(self) -> D::Idx;
}
Expand description

A type that can be transformed into the standard index of dimension D.

Required Methods§

Source

fn into_idx(self) -> D::Idx

Converts self into the standard index of dimension D.

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.

Implementations on Foreign Types§

Source§

impl IntoIdx<D1> for usize

Source§

fn into_idx(self) -> <D1 as Dim>::Idx

Source§

impl IntoIdx<D2> for (usize, usize)

Source§

fn into_idx(self) -> <D2 as Dim>::Idx

Source§

impl IntoIdx<D3> for (usize, usize, usize)

Source§

fn into_idx(self) -> <D3 as Dim>::Idx

Source§

impl IntoIdx<D4> for (usize, usize, usize, usize)

Source§

fn into_idx(self) -> <D4 as Dim>::Idx

Implementors§

Source§

impl<D: Dim> IntoIdx<D> for <D as Dim>::Idx