pub trait ListMut<T: CubePrimitive>:
List<T>
+ SliceMutOperator<T>
+ CubeType<ExpandType: ListMutExpand<T>> {
// Provided methods
fn write(&self, index: u32, value: T) { ... }
fn __expand_write(
scope: &mut Scope,
this: <Self as CubeType>::ExpandType,
index: <u32 as CubeType>::ExpandType,
value: <T 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.
Provided Methods§
fn write(&self, index: u32, value: T)
fn __expand_write( scope: &mut Scope, this: <Self as CubeType>::ExpandType, index: <u32 as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.