Skip to main content

RemoveDim

Trait RemoveDim 

Source
pub trait RemoveDim {
    type Output: MutLayout;

    // Required method
    fn remove_dim(&self, dim: usize) -> Self::Output;
}
Expand description

Trait that removes one dimension from a layout.

Required Associated Types§

Required Methods§

Source

fn remove_dim(&self, dim: usize) -> Self::Output

Return a copy of this layout with the dimension at index dim removed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R: RemoveDim> RemoveDim for &R

Source§

type Output = <R as RemoveDim>::Output

Source§

fn remove_dim(&self, dim: usize) -> Self::Output

Implementors§