Skip to main content

ViewOperationsMutExpand

Trait ViewOperationsMutExpand 

Source
pub trait ViewOperationsMutExpand<T: CubePrimitive, C: Coordinates>: ViewOperationsExpand<T, C> {
    // Required methods
    fn __expand_write_method(
        &self,
        scope: &Scope,
        pos: <C as CubeType>::ExpandType,
        value: <T as CubeType>::ExpandType,
    );
    fn __expand_write_checked_method(
        &self,
        scope: &Scope,
        pos: <C as CubeType>::ExpandType,
        value: <T as CubeType>::ExpandType,
    );
    fn __expand_as_linear_slice_mut_method<'infer, 'scope>(
        &'infer self,
        scope: &'scope Scope,
        pos: <C as CubeType>::ExpandType,
        size: <C as CubeType>::ExpandType,
    ) -> &'infer mut <[T] as CubeType>::ExpandType ;
    fn __expand_tensor_map_store_method(
        &self,
        scope: &Scope,
        shared_memory: &<[T] as CubeType>::ExpandType,
        pos: <C as CubeType>::ExpandType,
    );
}
Expand description

Type for which we can read and write values in cube functions. For an immutable version, see List.

Required Methods§

Source

fn __expand_write_method( &self, scope: &Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, )

Source

fn __expand_write_checked_method( &self, scope: &Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, )

Source

fn __expand_as_linear_slice_mut_method<'infer, 'scope>( &'infer self, scope: &'scope Scope, pos: <C as CubeType>::ExpandType, size: <C as CubeType>::ExpandType, ) -> &'infer mut <[T] as CubeType>::ExpandType

Source

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &<[T] as CubeType>::ExpandType, pos: <C as CubeType>::ExpandType, )

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: CubePrimitive, C: Coordinates, V: ViewOperationsMutExpand<T, C> + ?Sized> ViewOperationsMutExpand<T, C> for &mut V

Source§

fn __expand_write_method( &self, scope: &Scope, pos: C::ExpandType, value: T::ExpandType, )

Source§

fn __expand_write_checked_method( &self, scope: &Scope, pos: C::ExpandType, value: T::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, scope: &Scope, pos: C::ExpandType, size: C::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: C::ExpandType, )

Source§

impl<T: CubePrimitive, N: CubePrimitive + Coordinates> ViewOperationsMutExpand<T, Sequence<N>> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: SequenceExpand<N>, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: SequenceExpand<N>, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: SequenceExpand<N>, _end: SequenceExpand<N>, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: SequenceExpand<N>, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (i32, i32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords2i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords2i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords2i as CubeType>::ExpandType, _end: <Coords2i as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords2i as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (i32, i32, i32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords3i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords3i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords3i as CubeType>::ExpandType, _end: <Coords3i as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords3i as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (i32, i32, i32, i32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords4i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords4i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords4i as CubeType>::ExpandType, _end: <Coords4i as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords4i as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (i32, i32, i32, i32, i32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords5i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords5i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords5i as CubeType>::ExpandType, _end: <Coords5i as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords5i as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (u32, u32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords2d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords2d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords2d as CubeType>::ExpandType, _end: <Coords2d as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords2d as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (u32, u32, u32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords3d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords3d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords3d as CubeType>::ExpandType, _end: <Coords3d as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords3d as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (u32, u32, u32, u32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords4d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords4d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords4d as CubeType>::ExpandType, _end: <Coords4d as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords4d as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, (u32, u32, u32, u32, u32)> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords5d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords5d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords5d as CubeType>::ExpandType, _end: <Coords5d as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords5d as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, i32> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords1i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords1i as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords1i as CubeType>::ExpandType, _end: <Coords1i as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords1i as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, usize> for NativeExpand<Box<[T]>>

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, usize> for NativeExpand<TensorMap<T, Tiled>>

Source§

fn __expand_write_method( &self, _scope: &Scope, _pos: <Coords1d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_write_checked_method( &self, _scope: &Scope, _pos: <Coords1d as CubeType>::ExpandType, _value: <T as CubeType>::ExpandType, )

Source§

fn __expand_as_linear_slice_mut_method( &self, _scope: &Scope, _pos: <Coords1d as CubeType>::ExpandType, _end: <Coords1d as CubeType>::ExpandType, ) -> &mut SliceExpand<T>

Source§

fn __expand_tensor_map_store_method( &self, scope: &Scope, shared_memory: &SliceExpand<T>, pos: <Coords1d as CubeType>::ExpandType, )

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, usize> for SliceExpand<T>

Implementors§