Trait gstreamer::prelude::OptionEq

pub trait OptionEq<Rhs, InnerRhs = Rhs> {
    // Required method
    fn opt_eq(&self, other: Rhs) -> Option<bool>;

    // Provided method
    fn opt_ne(&self, other: Rhs) -> Option<bool> { ... }
}
Expand description

Trait for the equality OptionOperations.

Required Methods§

fn opt_eq(&self, other: Rhs) -> Option<bool>

Tests whether self is equal to other.

Returns None if they can’t be compared, e.g. if at most one argument is None.

Provided Methods§

fn opt_ne(&self, other: Rhs) -> Option<bool>

Tests whether self is not equal to other.

Returns None if they can’t be compared, e.g. if at most one argument is None.

Implementations on Foreign Types§

§

impl<T, InnerRhs> OptionEq<&Option<InnerRhs>, InnerRhs> for Option<T>
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

fn opt_eq(&self, rhs: &Option<InnerRhs>) -> Option<bool>

§

impl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for Option<T>
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

fn opt_eq(&self, rhs: Option<InnerRhs>) -> Option<bool>

§

impl<T, Rhs> OptionEq<&Rhs, Rhs> for Option<T>
where T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,

§

fn opt_eq(&self, rhs: &Rhs) -> Option<bool>

§

impl<T, Rhs> OptionEq<Rhs> for Option<T>
where T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,

§

fn opt_eq(&self, rhs: Rhs) -> Option<bool>

Implementors§

§

impl<T, InnerRhs> OptionEq<&Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

impl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,

§

impl<T, Rhs> OptionEq<&Rhs, Rhs> for T
where T: OptionOperations + PartialEq<Rhs>,

§

impl<T, Rhs> OptionEq<Rhs> for T
where T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,