Trait RemoveDim

Source
pub trait RemoveDim: Dimension {
    type Smaller: Dimension;

    // Required method
    fn remove(&self, axis: usize) -> (Self::Smaller, usize);
}
Expand description

Reduce an axis from a dimension

Required Associated Types§

Required Methods§

Source

fn remove(&self, axis: usize) -> (Self::Smaller, usize)

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

Source§

type Smaller = Vec<usize>

Source§

fn remove(&self, axis: usize) -> (Self::Smaller, usize)

Source§

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

Source§

type Smaller = [usize; { _ }]

Source§

fn remove(&self, axis: usize) -> (Self::Smaller, usize)

Implementors§