Skip to main content

ListMutExpand

Trait ListMutExpand 

Source
pub trait ListMutExpand<T: CubePrimitive>: SliceMutOperatorExpand<T> {
    // Required method
    fn __expand_write_method(
        &self,
        scope: &mut Scope,
        index: <usize 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.

Required Methods§

Source

fn __expand_write_method( &self, scope: &mut Scope, index: <usize as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§