Trait gstreamer::prelude::OptionSubAssign

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

source

fn opt_sub_assign(&mut self, rhs: Rhs)

Performs the substraction assignment.

self is unchanged if rhs is None.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

fn opt_sub_assign(&mut self, rhs: Rhs)

Implementors§

source§

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

source§

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

source§

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