pub trait SliceMutOperator<E: CubePrimitive>: CubeType<ExpandType: SliceMutOperatorExpand<E>> {
// Provided methods
fn slice_mut(&mut self, start: u32, end: u32) -> Slice<E, ReadWrite> ⓘ { ... }
fn to_slice_mut(&mut self) -> Slice<E, ReadWrite> ⓘ { ... }
fn __expand_slice_mut(
scope: &mut Scope,
this: <Self as CubeType>::ExpandType,
start: <u32 as CubeType>::ExpandType,
end: <u32 as CubeType>::ExpandType,
) -> <Slice<E, ReadWrite> as CubeType>::ExpandType ⓘ { ... }
fn __expand_to_slice_mut(
scope: &mut Scope,
this: <Self as CubeType>::ExpandType,
) -> <Slice<E, ReadWrite> as CubeType>::ExpandType ⓘ { ... }
}Provided Methods§
Sourcefn slice_mut(&mut self, start: u32, end: u32) -> Slice<E, ReadWrite> ⓘ
fn slice_mut(&mut self, start: u32, end: u32) -> Slice<E, ReadWrite> ⓘ
Return a read-write view of all elements comprise between the start and end indices.
In checked mode, if the end index is out-of-bound, it is replaced by
the length of self.
Sourcefn to_slice_mut(&mut self) -> Slice<E, ReadWrite> ⓘ
fn to_slice_mut(&mut self) -> Slice<E, ReadWrite> ⓘ
Reinterprete the current type as a read-write slice.
fn __expand_slice_mut( scope: &mut Scope, this: <Self as CubeType>::ExpandType, start: <u32 as CubeType>::ExpandType, end: <u32 as CubeType>::ExpandType, ) -> <Slice<E, ReadWrite> as CubeType>::ExpandType ⓘ
fn __expand_to_slice_mut( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <Slice<E, ReadWrite> 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.