IndexerSmallerOneAPI

Trait IndexerSmallerOneAPI 

Source
pub trait IndexerSmallerOneAPI {
    type DOut: DimDevAPI;

    // Required methods
    fn dim_select(
        &self,
        axis: isize,
        index: isize,
    ) -> Result<Layout<Self::DOut>>;
    fn dim_eliminate(&self, axis: isize) -> Result<Layout<Self::DOut>>;
}

Required Associated Types§

Required Methods§

Source

fn dim_select(&self, axis: isize, index: isize) -> Result<Layout<Self::DOut>>

Select dimension at index. Number of dimension will decrease by 1.

Source

fn dim_eliminate(&self, axis: isize) -> Result<Layout<Self::DOut>>

Eliminate dimension at index. Number of dimension will decrease by 1.

Implementors§

Source§

impl<D> IndexerSmallerOneAPI for Layout<D>
where D: DimDevAPI + DimSmallerOneAPI, D::SmallerOne: DimDevAPI,

Source§

type DOut = <D as DimSmallerOneAPI>::SmallerOne