pub trait MulAssign<Rhs = Self> {
// Required method
fn mul_assign(&mut self, rhs: Rhs);
}
Expand description
The multiplication assignment operator *=
.
§Examples
use std::ops::MulAssign;
#[derive(Debug, PartialEq)]
struct Frequency { hertz: f64 }
impl MulAssign<f64> for Frequency {
fn mul_assign(&mut self, rhs: f64) {
self.hertz *= rhs;
}
}
let mut frequency = Frequency { hertz: 50.0 };
frequency *= 4.0;
assert_eq!(Frequency { hertz: 200.0 }, frequency);
Required Methods§
1.8.0 · Sourcefn mul_assign(&mut self, rhs: Rhs)
fn mul_assign(&mut self, rhs: Rhs)
Implementors§
impl MulAssign for f16
impl MulAssign for f32
impl MulAssign for f64
impl MulAssign for f128
impl MulAssign for i8
impl MulAssign for i16
impl MulAssign for i32
impl MulAssign for i64
impl MulAssign for i128
impl MulAssign for isize
impl MulAssign for u8
impl MulAssign for u16
impl MulAssign for u32
impl MulAssign for u64
impl MulAssign for u128
impl MulAssign for usize
impl MulAssign for Felt
Field multiplication. Never overflows/underflows.
impl MulAssign for Saturating<i8>
impl MulAssign for Saturating<i16>
impl MulAssign for Saturating<i32>
impl MulAssign for Saturating<i64>
impl MulAssign for Saturating<i128>
impl MulAssign for Saturating<isize>
impl MulAssign for Saturating<u8>
impl MulAssign for Saturating<u16>
impl MulAssign for Saturating<u32>
impl MulAssign for Saturating<u64>
impl MulAssign for Saturating<u128>
impl MulAssign for Saturating<usize>
impl MulAssign for cairo_vm::with_std::num::Wrapping<i8>
impl MulAssign for cairo_vm::with_std::num::Wrapping<i16>
impl MulAssign for cairo_vm::with_std::num::Wrapping<i32>
impl MulAssign for cairo_vm::with_std::num::Wrapping<i64>
impl MulAssign for cairo_vm::with_std::num::Wrapping<i128>
impl MulAssign for cairo_vm::with_std::num::Wrapping<isize>
impl MulAssign for cairo_vm::with_std::num::Wrapping<u8>
impl MulAssign for cairo_vm::with_std::num::Wrapping<u16>
impl MulAssign for cairo_vm::with_std::num::Wrapping<u32>
impl MulAssign for cairo_vm::with_std::num::Wrapping<u64>
impl MulAssign for cairo_vm::with_std::num::Wrapping<u128>
impl MulAssign for cairo_vm::with_std::num::Wrapping<usize>
impl MulAssign for Checked<Limb>
impl MulAssign for crypto_bigint::wrapping::Wrapping<Limb>
impl MulAssign for BigInt
impl MulAssign for BigUint
impl MulAssign for Decimal
impl MulAssign for starknet_ff::FieldElement
impl MulAssign<&f16> for f16
impl MulAssign<&f32> for f32
impl MulAssign<&f64> for f64
impl MulAssign<&f128> for f128
impl MulAssign<&i8> for i8
impl MulAssign<&i8> for Saturating<i8>
impl MulAssign<&i8> for cairo_vm::with_std::num::Wrapping<i8>
impl MulAssign<&i16> for i16
impl MulAssign<&i16> for Saturating<i16>
impl MulAssign<&i16> for cairo_vm::with_std::num::Wrapping<i16>
impl MulAssign<&i32> for i32
impl MulAssign<&i32> for Saturating<i32>
impl MulAssign<&i32> for cairo_vm::with_std::num::Wrapping<i32>
impl MulAssign<&i64> for i64
impl MulAssign<&i64> for Saturating<i64>
impl MulAssign<&i64> for cairo_vm::with_std::num::Wrapping<i64>
impl MulAssign<&i128> for i128
impl MulAssign<&i128> for Saturating<i128>
impl MulAssign<&i128> for cairo_vm::with_std::num::Wrapping<i128>
impl MulAssign<&isize> for isize
impl MulAssign<&isize> for Saturating<isize>
impl MulAssign<&isize> for cairo_vm::with_std::num::Wrapping<isize>
impl MulAssign<&u8> for u8
impl MulAssign<&u8> for Saturating<u8>
impl MulAssign<&u8> for cairo_vm::with_std::num::Wrapping<u8>
impl MulAssign<&u16> for u16
impl MulAssign<&u16> for Saturating<u16>
impl MulAssign<&u16> for cairo_vm::with_std::num::Wrapping<u16>
impl MulAssign<&u32> for u32
impl MulAssign<&u32> for Saturating<u32>
impl MulAssign<&u32> for cairo_vm::with_std::num::Wrapping<u32>
impl MulAssign<&u64> for u64
impl MulAssign<&u64> for Saturating<u64>
impl MulAssign<&u64> for cairo_vm::with_std::num::Wrapping<u64>
impl MulAssign<&u128> for u128
impl MulAssign<&u128> for Saturating<u128>
impl MulAssign<&u128> for cairo_vm::with_std::num::Wrapping<u128>
impl MulAssign<&usize> for usize
impl MulAssign<&usize> for Saturating<usize>
impl MulAssign<&usize> for cairo_vm::with_std::num::Wrapping<usize>
impl MulAssign<&Felt> for Felt
Field multiplication. Never overflows/underflows.
impl MulAssign<&Saturating<i8>> for Saturating<i8>
impl MulAssign<&Saturating<i16>> for Saturating<i16>
impl MulAssign<&Saturating<i32>> for Saturating<i32>
impl MulAssign<&Saturating<i64>> for Saturating<i64>
impl MulAssign<&Saturating<i128>> for Saturating<i128>
impl MulAssign<&Saturating<isize>> for Saturating<isize>
impl MulAssign<&Saturating<u8>> for Saturating<u8>
impl MulAssign<&Saturating<u16>> for Saturating<u16>
impl MulAssign<&Saturating<u32>> for Saturating<u32>
impl MulAssign<&Saturating<u64>> for Saturating<u64>
impl MulAssign<&Saturating<u128>> for Saturating<u128>
impl MulAssign<&Saturating<usize>> for Saturating<usize>
impl MulAssign<&Wrapping<i8>> for cairo_vm::with_std::num::Wrapping<i8>
impl MulAssign<&Wrapping<i16>> for cairo_vm::with_std::num::Wrapping<i16>
impl MulAssign<&Wrapping<i32>> for cairo_vm::with_std::num::Wrapping<i32>
impl MulAssign<&Wrapping<i64>> for cairo_vm::with_std::num::Wrapping<i64>
impl MulAssign<&Wrapping<i128>> for cairo_vm::with_std::num::Wrapping<i128>
impl MulAssign<&Wrapping<isize>> for cairo_vm::with_std::num::Wrapping<isize>
impl MulAssign<&Wrapping<u8>> for cairo_vm::with_std::num::Wrapping<u8>
impl MulAssign<&Wrapping<u16>> for cairo_vm::with_std::num::Wrapping<u16>
impl MulAssign<&Wrapping<u32>> for cairo_vm::with_std::num::Wrapping<u32>
impl MulAssign<&Wrapping<u64>> for cairo_vm::with_std::num::Wrapping<u64>
impl MulAssign<&Wrapping<u128>> for cairo_vm::with_std::num::Wrapping<u128>
impl MulAssign<&Wrapping<usize>> for cairo_vm::with_std::num::Wrapping<usize>
impl MulAssign<&Checked<Limb>> for Checked<Limb>
impl MulAssign<&Wrapping<Limb>> for crypto_bigint::wrapping::Wrapping<Limb>
impl MulAssign<&BigInt> for BigInt
impl MulAssign<&BigUint> for BigUint
impl MulAssign<i8> for Saturating<i8>
impl MulAssign<i8> for cairo_vm::with_std::num::Wrapping<i8>
impl MulAssign<i8> for BigInt
impl MulAssign<i16> for Saturating<i16>
impl MulAssign<i16> for cairo_vm::with_std::num::Wrapping<i16>
impl MulAssign<i16> for BigInt
impl MulAssign<i32> for Saturating<i32>
impl MulAssign<i32> for cairo_vm::with_std::num::Wrapping<i32>
impl MulAssign<i32> for BigInt
impl MulAssign<i64> for Saturating<i64>
impl MulAssign<i64> for cairo_vm::with_std::num::Wrapping<i64>
impl MulAssign<i64> for BigInt
impl MulAssign<i128> for Saturating<i128>
impl MulAssign<i128> for cairo_vm::with_std::num::Wrapping<i128>
impl MulAssign<i128> for BigInt
impl MulAssign<isize> for Saturating<isize>
impl MulAssign<isize> for cairo_vm::with_std::num::Wrapping<isize>
impl MulAssign<isize> for BigInt
impl MulAssign<u8> for Saturating<u8>
impl MulAssign<u8> for cairo_vm::with_std::num::Wrapping<u8>
impl MulAssign<u8> for BigInt
impl MulAssign<u8> for BigUint
impl MulAssign<u16> for Saturating<u16>
impl MulAssign<u16> for cairo_vm::with_std::num::Wrapping<u16>
impl MulAssign<u16> for BigInt
impl MulAssign<u16> for BigUint
impl MulAssign<u32> for Saturating<u32>
impl MulAssign<u32> for cairo_vm::with_std::num::Wrapping<u32>
impl MulAssign<u32> for Duration
impl MulAssign<u32> for BigInt
impl MulAssign<u32> for BigUint
impl MulAssign<u64> for Saturating<u64>
impl MulAssign<u64> for cairo_vm::with_std::num::Wrapping<u64>
impl MulAssign<u64> for BigInt
impl MulAssign<u64> for BigUint
impl MulAssign<u128> for Saturating<u128>
impl MulAssign<u128> for cairo_vm::with_std::num::Wrapping<u128>
impl MulAssign<u128> for BigInt
impl MulAssign<u128> for BigUint
impl MulAssign<usize> for ExecutionResources
impl MulAssign<usize> for Saturating<usize>
impl MulAssign<usize> for cairo_vm::with_std::num::Wrapping<usize>
impl MulAssign<usize> for BigInt
impl MulAssign<usize> for BigUint
impl<'a> MulAssign<&'a Decimal> for &'a mut Decimal
impl<'a> MulAssign<&'a Decimal> for Decimal
impl<'a> MulAssign<Decimal> for &'a mut Decimal
impl<'a, P> MulAssign<&'a CubicExtField<P>> for CubicExtField<P>where
P: CubicExtConfig,
impl<'a, P> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> MulAssign<&'a mut CubicExtField<P>> for CubicExtField<P>where
P: CubicExtConfig,
impl<'a, P> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P, const N: usize> MulAssign<&'a Fp<P, N>> for Fp<P, N>where
P: FpConfig<N>,
impl<'a, P, const N: usize> MulAssign<&'a mut Fp<P, N>> for Fp<P, N>where
P: FpConfig<N>,
impl<F, L> MulAssign<&FieldElement<F>> for lambdaworks_math::field::element::FieldElement<L>where
F: IsSubFieldOf<L>,
L: IsField,
MulAssign operator overloading for field elements
impl<F, L> MulAssign<FieldElement<F>> for lambdaworks_math::field::element::FieldElement<L>where
F: IsSubFieldOf<L>,
L: IsField,
MulAssign operator overloading for field elements