pub struct SliceMut<'a, T>(pub &'a mut [T]);Expand description
A mutable slice that supports element-wise +=, -=, *=, /= with
another slice or scalar broadcast.
Operators use the scalar path (no SIMD). For SIMD-accelerated ops, use
the add_slices / sub_slices / … helpers or SlicePair.
Tuple Fields§
§0: &'a mut [T]Implementations§
Source§impl<'a, T: Transcendental> SliceMut<'a, T>
impl<'a, T: Transcendental> SliceMut<'a, T>
Trait Implementations§
Source§impl<'a, T: Transcendental> AddAssign<&[T]> for SliceMut<'a, T>
impl<'a, T: Transcendental> AddAssign<&[T]> for SliceMut<'a, T>
Source§fn add_assign(&mut self, rhs: &[T])
fn add_assign(&mut self, rhs: &[T])
Performs the
+= operation. Read moreSource§impl<'a, T: Transcendental> AddAssign<T> for SliceMut<'a, T>
impl<'a, T: Transcendental> AddAssign<T> for SliceMut<'a, T>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<'a, T: Transcendental> DivAssign<&[T]> for SliceMut<'a, T>
impl<'a, T: Transcendental> DivAssign<&[T]> for SliceMut<'a, T>
Source§fn div_assign(&mut self, rhs: &[T])
fn div_assign(&mut self, rhs: &[T])
Performs the
/= operation. Read moreSource§impl<'a, T: Transcendental> DivAssign<T> for SliceMut<'a, T>
impl<'a, T: Transcendental> DivAssign<T> for SliceMut<'a, T>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreSource§impl<'a, T: Transcendental> MulAssign<&[T]> for SliceMut<'a, T>
impl<'a, T: Transcendental> MulAssign<&[T]> for SliceMut<'a, T>
Source§fn mul_assign(&mut self, rhs: &[T])
fn mul_assign(&mut self, rhs: &[T])
Performs the
*= operation. Read moreSource§impl<'a, T: Transcendental> MulAssign<T> for SliceMut<'a, T>
impl<'a, T: Transcendental> MulAssign<T> for SliceMut<'a, T>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<'a, T: Transcendental> SubAssign<&[T]> for SliceMut<'a, T>
impl<'a, T: Transcendental> SubAssign<&[T]> for SliceMut<'a, T>
Source§fn sub_assign(&mut self, rhs: &[T])
fn sub_assign(&mut self, rhs: &[T])
Performs the
-= operation. Read moreSource§impl<'a, T: Transcendental> SubAssign<T> for SliceMut<'a, T>
impl<'a, T: Transcendental> SubAssign<T> for SliceMut<'a, T>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl<'a, T> !UnwindSafe for SliceMut<'a, T>
impl<'a, T> Freeze for SliceMut<'a, T>
impl<'a, T> RefUnwindSafe for SliceMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SliceMut<'a, T>where
T: Send,
impl<'a, T> Sync for SliceMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for SliceMut<'a, T>
impl<'a, T> UnsafeUnpin for SliceMut<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more