Trait IndexerDynamicAPI

Source
pub trait IndexerDynamicAPI: IndexerPreserveAPI {
    // Required methods
    fn dim_slice(&self, indexers: &[Indexer]) -> Result<Layout<IxD>>;
    fn dim_split_at(&self, axis: isize) -> Result<(Layout<IxD>, Layout<IxD>)>;
    fn dim_split_axes(
        &self,
        axes: &[isize],
    ) -> Result<(Layout<IxD>, Layout<IxD>)>;
}

Required Methods§

Source

fn dim_slice(&self, indexers: &[Indexer]) -> Result<Layout<IxD>>

Index tensor by a list of indexers.

Source

fn dim_split_at(&self, axis: isize) -> Result<(Layout<IxD>, Layout<IxD>)>

Split current layout into two layouts at axis, with offset unchanged.

Source

fn dim_split_axes(&self, axes: &[isize]) -> Result<(Layout<IxD>, Layout<IxD>)>

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.

Implementors§