Trait gstreamer::prelude::OptionAddAssign

source ·
pub trait OptionAddAssign<Rhs = Self, InnerRhs = Rhs> {
    // Required method
    fn opt_add_assign(&mut self, rhs: Rhs);
}
Expand description

Trait for values and Options addition assignment.

Implementing this trait leads to the following auto-implementations:

  • OptionAddAssign<Option<InnerRhs>> for T.
  • OptionAddAssign<Rhs> for Option<T>.
  • OptionAddAssign<Option<InnerRhs>> for Option<T>.
  • … and some variants with references.

This trait is auto-implemented for OptionOperations types implementing Add<Rhs>.

Required Methods§

source

fn opt_add_assign(&mut self, rhs: Rhs)

Performs the addition assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

fn opt_add_assign(&mut self, rhs: Rhs)

Implementors§

source§

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

source§

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

source§

impl<T, Rhs> OptionAddAssign<Rhs> for T
where T: OptionOperations + AddAssign<Rhs>,