Trait gstreamer::prelude::OptionDivAssign
pub trait OptionDivAssign<Rhs = Self, InnerRhs = Rhs> {
// Required method
fn opt_div_assign(&mut self, rhs: Rhs);
}
Expand description
Trait for values and Option
s division assignment.
Implementing this trait leads to the following auto-implementations:
OptionDivAssign<Option<InnerRhs>>
forT
.OptionDivAssign<Rhs>
forOption<T>
.OptionDivAssign<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
This trait is auto-implemented for OptionOperations
types implementing
Div<Rhs>
.
Required Methods§
fn opt_div_assign(&mut self, rhs: Rhs)
fn opt_div_assign(&mut self, rhs: Rhs)
Performs the division assignment.
self
is unchanged if rhs
is None
.
§Panics
Most implementations will panic if rhs
is zero.