Trait gstreamer::prelude::OptionSubAssign

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

Trait for values and Options substraction assignment.

Implementing this trait leads to the following auto-implementations:

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

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

Required Methods§

fn opt_sub_assign(&mut self, rhs: Rhs)

Performs the substraction assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

fn opt_sub_assign(&mut self, rhs: Rhs)

Implementors§

§

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

§

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

§

impl<T, Rhs> OptionSubAssign<Rhs> for T
where T: OptionOperations + SubAssign<Rhs>,