pub trait IntoDimension {
    type Dim: Dimension;

    // Required method
    fn into_dimension(self) -> Self::Dim;
}
Expand description

Argument conversion a dimension.

Required Associated Types§

Required Methods§

source

fn into_dimension(self) -> Self::Dim

Implementations on Foreign Types§

source§

impl IntoDimension for usize

§

type Dim = Dim<[usize; 1]>

source§

fn into_dimension(self) -> Dim<[usize; 1]>

source§

impl IntoDimension for (usize, usize, usize, usize, usize)

source§

impl IntoDimension for ()

source§

impl IntoDimension for (usize, usize, usize, usize, usize, usize)

source§

impl IntoDimension for (usize,)

§

type Dim = Dim<[usize; 1]>

source§

fn into_dimension(self) -> <(usize,) as IntoDimension>::Dim

source§

impl IntoDimension for (usize, usize, usize, usize)

source§

impl IntoDimension for [usize; 1]

§

type Dim = Dim<[usize; 1]>

source§

fn into_dimension(self) -> <[usize; 1] as IntoDimension>::Dim

source§

impl IntoDimension for [usize; 0]

§

type Dim = Dim<[usize; 0]>

source§

fn into_dimension(self) -> <[usize; 0] as IntoDimension>::Dim

source§

impl IntoDimension for (usize, usize)

source§

impl IntoDimension for [usize; 5]

§

type Dim = Dim<[usize; 5]>

source§

fn into_dimension(self) -> <[usize; 5] as IntoDimension>::Dim

source§

impl IntoDimension for (usize, usize, usize)

source§

impl IntoDimension for [usize; 3]

§

type Dim = Dim<[usize; 3]>

source§

fn into_dimension(self) -> <[usize; 3] as IntoDimension>::Dim

source§

impl IntoDimension for [usize; 2]

§

type Dim = Dim<[usize; 2]>

source§

fn into_dimension(self) -> <[usize; 2] as IntoDimension>::Dim

source§

impl IntoDimension for [usize; 4]

§

type Dim = Dim<[usize; 4]>

source§

fn into_dimension(self) -> <[usize; 4] as IntoDimension>::Dim

source§

impl<'a> IntoDimension for &'a [usize]

source§

impl IntoDimension for [usize; 6]

§

type Dim = Dim<[usize; 6]>

source§

fn into_dimension(self) -> <[usize; 6] as IntoDimension>::Dim

source§

impl IntoDimension for Vec<usize, Global>

Implementors§