IndexerSmallerOneAPI

Trait IndexerSmallerOneAPI 

Source
pub trait IndexerSmallerOneAPI {
    type DOut: DimDevAPI;

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

Required Associated Types§

Required Methods§

Source

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

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

Source

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

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

Implementors§

Source§

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

Source§

type DOut = <D as DimSmallerOneAPI>::SmallerOne