Trait OptEq

Source
pub trait OptEq {
    // Required method
    fn opt_eq(&self, other: &Self) -> bool;
}
Expand description

Equality within Optioned

Required Methods§

Source

fn opt_eq(&self, other: &Self) -> bool

Is the other optioned equal to this one?

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OptEq for char

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for f32

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for f64

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for i8

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for i16

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for i32

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for i64

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for isize

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for u8

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for u16

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for u32

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for u64

Source§

fn opt_eq(&self, other: &Self) -> bool

Source§

impl OptEq for usize

Source§

fn opt_eq(&self, other: &Self) -> bool

Implementors§