pub trait ViewOperationsExpand<T: CubePrimitive, C: Coordinates>: VectorizedExpand {
// Required methods
fn __expand_read_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_checked_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_masked_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
value: <T as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_unchecked_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_to_linear_slice_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
size: <C as CubeType>::ExpandType,
) -> <Slice<T, ReadOnly> as CubeType>::ExpandType;
fn __expand_tensor_map_load_method(
&self,
scope: &mut Scope,
barrier: <Barrier as CubeType>::ExpandType,
shared_memory: <Slice<T, ReadWrite> as CubeType>::ExpandType,
pos: <C as CubeType>::ExpandType,
) -> <() as CubeType>::ExpandType;
fn __expand_shape_method(
&self,
scope: &mut Scope,
) -> <C as CubeType>::ExpandType;
fn __expand_is_in_bounds_method(
&self,
scope: &mut Scope,
pos: <C as CubeType>::ExpandType,
) -> <bool as CubeType>::ExpandType;
}Expand description
Type from which we can read values in cube functions.
For a mutable version, see ListMut.
Required Methods§
fn __expand_read_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_checked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_masked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_unchecked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_to_linear_slice_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, size: <C as CubeType>::ExpandType, ) -> <Slice<T, ReadOnly> as CubeType>::ExpandType
fn __expand_tensor_map_load_method( &self, scope: &mut Scope, barrier: <Barrier as CubeType>::ExpandType, shared_memory: <Slice<T, ReadWrite> as CubeType>::ExpandType, pos: <C as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
fn __expand_shape_method( &self, scope: &mut Scope, ) -> <C as CubeType>::ExpandType
fn __expand_is_in_bounds_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".