Trait gstreamer::prelude::OptionMulAssign

source ·
pub trait OptionMulAssign<Rhs = Self, InnerRhs = Rhs> {
    // Required method
    fn opt_mul_assign(&mut self, rhs: Rhs);
}
Expand description

Trait for values and Options multiplication assignment.

Implementing this trait leads to the following auto-implementations:

  • OptionMulAssign<Option<InnerRhs>> for T.
  • OptionMulAssign<Rhs> for Option<T>.
  • OptionMulAssign<Option<InnerRhs>> for Option<T>.
  • … and some variants with references.

This trait is auto-implemented for OptionOperations types implementing Mul<Rhs>.

Required Methods§

source

fn opt_mul_assign(&mut self, rhs: Rhs)

Performs the multiplication assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

source§

impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for Option<T>
where T: OptionOperations + OptionMulAssign<InnerRhs>, InnerRhs: Copy,

source§

fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)

source§

impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for Option<T>
where T: OptionOperations + OptionMulAssign<InnerRhs>,

source§

fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)

source§

impl<T, Rhs> OptionMulAssign<Rhs> for Option<T>

source§

fn opt_mul_assign(&mut self, rhs: Rhs)

Implementors§

source§

impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMulAssign<InnerRhs>, InnerRhs: Copy,

source§

impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + OptionMulAssign<InnerRhs>,

source§

impl<T, Rhs> OptionMulAssign<Rhs> for T
where T: OptionOperations + MulAssign<Rhs>,