Skip to main content

AsTensorView

Trait AsTensorView 

Source
pub trait AsTensorView<E: CubePrimitive>: CubeType<ExpandType: AsTensorViewExpand<E>> {
Show 20 methods // Provided methods fn view_1d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords1d>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_1d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords1d>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_2d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords2d>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_2d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords2d>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_3d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords3d>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_3d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords3d>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_4d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords4d>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_4d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords4d>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_5d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords5d>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_5d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords5d>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_1i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords1i>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_1i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords1i>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_2i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords2i>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_2i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords2i>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_3i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords3i>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_3i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords3i>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_4i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords4i>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_4i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords4i>, ) -> ViewExpand<E, C, ReadOnly> { ... } fn view_5i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords5i>>, ) -> View<E, C, ReadOnly> { ... } fn __expand_view_5i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords5i>, ) -> ViewExpand<E, C, ReadOnly> { ... }
}

Provided Methods§

Source

fn view_1d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords1d>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_1d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords1d>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_2d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords2d>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_2d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords2d>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_3d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords3d>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_3d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords3d>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_4d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords4d>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_4d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords4d>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_5d<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords5d>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_5d<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords5d>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_1i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords1i>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_1i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords1i>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_2i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords2i>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_2i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords2i>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_3i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords3i>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_3i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords3i>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_4i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords4i>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_4i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords4i>, ) -> ViewExpand<E, C, ReadOnly>

Source

fn view_5i<C: Coordinates + 'static>( &self, layout: impl Into<VirtualLayout<C, Coords5i>>, ) -> View<E, C, ReadOnly>

Source

fn __expand_view_5i<C: Coordinates + 'static>( scope: &mut Scope, this: Self::ExpandType, layout: VirtualLayoutExpand<C, Coords5i>, ) -> ViewExpand<E, C, ReadOnly>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<E: CubePrimitive> AsTensorView<E> for TensorMap<E, Tiled>

Implementors§