SliceMutOperator

Trait SliceMutOperator 

Source
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§

Source

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.

Source

fn to_slice_mut(&mut self) -> Slice<E, ReadWrite>

Reinterprete the current type as a read-write slice.

Source

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

Source

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.

Implementations on Foreign Types§

Source§

impl<'a, T: CubePrimitive, L: SliceMutOperator<T>> SliceMutOperator<T> for &'a L
where &'a L: CubeType<ExpandType = L::ExpandType>,

Source§

impl<'a, T: CubePrimitive, L: SliceMutOperator<T>> SliceMutOperator<T> for &'a mut L
where &'a mut L: CubeType<ExpandType = L::ExpandType>,

Implementors§