Trait gstreamer::prelude::OptionCheckedMul
source · pub trait OptionCheckedMul<Rhs = Self, InnerRhs = Rhs> {
type Output;
// Required method
fn opt_checked_mul(self, rhs: Rhs) -> Result<Option<Self::Output>, Error>;
}
Expand description
Trait for values and Option
s checked multiplication.
Implementing this trait leads to the following auto-implementations:
OptionCheckedMul<Option<InnerRhs>>
forT
.OptionCheckedMul<Rhs>
forOption<T>
.OptionCheckedMul<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
Note that since the std
library doesn’t define any
CheckedMul
trait,
users must provide the base implementation for the inner type.