Trait gstreamer::prelude::OptionRemAssign

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

Trait for values and Options remainder assignment.

Implementing this trait leads to the following auto-implementations:

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

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

Required Methods§

fn opt_rem_assign(&mut self, rhs: Rhs)

Performs the remainder assignment.

self is unchanged if rhs is None.

§Panics

Most implementations will panic if rhs is zero.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

fn opt_rem_assign(&mut self, rhs: Rhs)

Implementors§

§

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

§

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

§

impl<T, Rhs> OptionRemAssign<Rhs> for T
where T: OptionOperations + RemAssign<Rhs>,