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