ViewOperationsMutExpand

Trait ViewOperationsMutExpand 

Source
pub trait ViewOperationsMutExpand<T: CubePrimitive, C: Coordinates>: ViewOperationsExpand<T, C> {
    // Required methods
    fn __expand_write_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
        value: <T as CubeType>::ExpandType,
    ) -> <() as CubeType>::ExpandType;
    fn __expand_write_checked_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
        value: <T as CubeType>::ExpandType,
    ) -> <() as CubeType>::ExpandType;
    fn __expand_to_linear_slice_mut_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
        size: <C as CubeType>::ExpandType,
    ) -> <Slice<T, ReadWrite> as CubeType>::ExpandType;
    fn __expand_tensor_map_store_method(
        &self,
        scope: &mut Scope,
        shared_memory: <Slice<T> as CubeType>::ExpandType,
        pos: <C as CubeType>::ExpandType,
    ) -> <() 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: &mut Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

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

Source

fn __expand_to_linear_slice_mut_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, size: <C as CubeType>::ExpandType, ) -> <Slice<T, ReadWrite> as CubeType>::ExpandType

Source

fn __expand_tensor_map_store_method( &self, scope: &mut Scope, shared_memory: <Slice<T> as CubeType>::ExpandType, pos: <C as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, i32> for ExpandElementTyped<TensorMap<T>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, u32> for SliceExpand<T, ReadWrite>

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, u32> for ExpandElementTyped<Array<T>>

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, u32> for ExpandElementTyped<SharedMemory<T>>

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, u32> for ExpandElementTyped<Tensor<T>>

Source§

impl<T: CubePrimitive> ViewOperationsMutExpand<T, u32> for ExpandElementTyped<TensorMap<T>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§