#[repr(transparent)]pub struct Scale<T>(pub T);
Expand description
Thin wrapper used for scalar multiplication of a matrix by a scalar value. Wrapper around a scalar value that allows scalar multiplication by matrices.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<E: ComplexField> MulAssign<Scale<E>> for Mat<E>
impl<E: ComplexField> MulAssign<Scale<E>> for Mat<E>
source§fn mul_assign(&mut self, rhs: Scale<E>)
fn mul_assign(&mut self, rhs: Scale<E>)
Performs the
*=
operation. Read moresource§impl<E: ComplexField> MulAssign<Scale<E>> for MatMut<'_, E>
impl<E: ComplexField> MulAssign<Scale<E>> for MatMut<'_, E>
source§fn mul_assign(&mut self, rhs: Scale<E>)
fn mul_assign(&mut self, rhs: Scale<E>)
Performs the
*=
operation. Read moresource§impl<T: Ord> Ord for Scale<T>
impl<T: Ord> Ord for Scale<T>
source§impl<T: PartialEq> PartialEq for Scale<T>
impl<T: PartialEq> PartialEq for Scale<T>
source§impl<T: PartialOrd> PartialOrd for Scale<T>
impl<T: PartialOrd> PartialOrd for Scale<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for Scale<T>
impl<T: Eq> Eq for Scale<T>
impl<T> StructuralEq for Scale<T>
impl<T> StructuralPartialEq for Scale<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Scale<T>where
T: RefUnwindSafe,
impl<T> Send for Scale<T>where
T: Send,
impl<T> Sync for Scale<T>where
T: Sync,
impl<T> Unpin for Scale<T>where
T: Unpin,
impl<T> UnwindSafe for Scale<T>where
T: UnwindSafe,
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