Trait InsertDim

Source
pub trait InsertDim: Dimension {
    type Larger: Dimension;

    // Required method
    fn insert(&self, axis: usize, n: usize) -> Self::Larger;
}
Expand description

Insert an axis into a dimension

Required Associated Types§

Required Methods§

Source

fn insert(&self, axis: usize, n: usize) -> Self::Larger

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 InsertDim for Vec<usize>

Source§

type Larger = Vec<usize>

Source§

fn insert(&self, axis: usize, n: usize) -> Self::Larger

Source§

impl<const N: usize> InsertDim for [usize; N]
where [(); { _ }]: Sized,

Source§

type Larger = [usize; { _ }]

Source§

fn insert(&self, axis: usize, n: usize) -> Self::Larger

Implementors§