Trait gstreamer::prelude::OptionEq

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

source

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§

source

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§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

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

source§

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

source§

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

source§

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