Skip to main content

ShapeDTypeKind

Trait ShapeDTypeKind 

Source
pub trait ShapeDTypeKind<D: Device>: DTypeKind<D> {
    // Required methods
    fn contiguous_dispatch(
        s: &Self::Storage,
        l: &Layout,
    ) -> Result<Self::Storage>;
    fn cat_dispatch(
        srcs: &[(&Self::Storage, &Layout)],
        dim: usize,
    ) -> Result<(Self::Storage, Shape)>;
    fn view_dispatch(
        src: &Self::Storage,
        src_l: &Layout,
        dst_l: &Layout,
        view: ViewOp,
    ) -> Result<Option<Self::Storage>>;
}

Required Methods§

Source

fn contiguous_dispatch(s: &Self::Storage, l: &Layout) -> Result<Self::Storage>

Source

fn cat_dispatch( srcs: &[(&Self::Storage, &Layout)], dim: usize, ) -> Result<(Self::Storage, Shape)>

Source

fn view_dispatch( src: &Self::Storage, src_l: &Layout, dst_l: &Layout, view: ViewOp, ) -> Result<Option<Self::Storage>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§