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§
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, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".