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 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§

fn opt_add_assign(&mut self, rhs: Rhs)

Performs the addition assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

fn opt_add_assign(&mut self, rhs: Rhs)

Implementors§

§

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

§

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

§

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