Trait gstreamer::prelude::OptionMulAssign

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§

fn opt_mul_assign(&mut self, rhs: Rhs)

Performs the multiplication assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

fn opt_mul_assign(&mut self, rhs: Rhs)

Implementors§

§

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

§

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

§

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