Trait gstreamer::prelude::OptionOverflowingMul
source · [−]pub trait OptionOverflowingMul<Rhs = Self, InnerRhs = Rhs> {
type Output;
fn opt_overflowing_mul(self, rhs: Rhs) -> Option<(Self::Output, bool)>;
}
Expand description
Trait for values and Option
s overflowing multiplication.
Implementing this trait leads to the following auto-implementations:
OptionOverflowingMul<Option<InnerRhs>>
forT
.OptionOverflowingMul<Rhs>
forOption<T>
.OptionOverflowingMul<Option<InnerRhs>>
forOption<T>
.- … and some variants with references.
Note that since the std
library doesn’t define any
OverflowingMul
trait,
users must provide the base implementation for the inner type.