pub trait ViewOperationsExpand<T: CubePrimitive, C: Coordinates>: VectorizedExpand {
// Required methods
fn __expand_read_method(
&self,
scope: &Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_checked_method(
&self,
scope: &Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_masked_method(
&self,
scope: &Scope,
pos: <C as CubeType>::ExpandType,
value: <T as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_read_unchecked_method(
&self,
scope: &Scope,
pos: <C as CubeType>::ExpandType,
) -> <T as CubeType>::ExpandType;
fn __expand_as_linear_slice_method<'infer, 'scope>(
&'infer self,
scope: &'scope Scope,
pos: <C as CubeType>::ExpandType,
size: <C as CubeType>::ExpandType,
) -> &'infer <[T] as CubeType>::ExpandType ⓘ;
fn __expand_tensor_map_load_method(
&self,
scope: &Scope,
barrier: &<Barrier as CubeType>::ExpandType,
shared_memory: &mut <[T] as CubeType>::ExpandType,
pos: <C as CubeType>::ExpandType,
);
fn __expand_shape_method(
&self,
scope: &Scope,
) -> <C as CubeType>::ExpandType;
fn __expand_is_in_bounds_method(
&self,
scope: &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: &Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_checked_method( &self, scope: &Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_masked_method( &self, scope: &Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_read_unchecked_method( &self, scope: &Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType
fn __expand_as_linear_slice_method<'infer, 'scope>( &'infer self, scope: &'scope Scope, pos: <C as CubeType>::ExpandType, size: <C as CubeType>::ExpandType, ) -> &'infer <[T] as CubeType>::ExpandType ⓘ
fn __expand_tensor_map_load_method( &self, scope: &Scope, barrier: &<Barrier as CubeType>::ExpandType, shared_memory: &mut <[T] as CubeType>::ExpandType, pos: <C as CubeType>::ExpandType, )
fn __expand_shape_method(&self, scope: &Scope) -> <C as CubeType>::ExpandType
fn __expand_is_in_bounds_method( &self, scope: &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".