Trait PartialEqSpecImpl

Source
pub trait PartialEqSpecImpl<Rhs: ?Sized = Self>: PartialEq<Rhs> {
    // Required methods
    exec fn obeys_eq_spec() -> bool;
    exec fn eq_spec(&self, other: &Rhs) -> bool;
}

Required Methods§

Source

exec fn obeys_eq_spec() -> bool

Source

exec fn eq_spec(&self, other: &Rhs) -> bool

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 PartialEqSpecImpl for bool

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &bool) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for i8

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &i8) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for i16

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &i16) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for i32

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &i32) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for i64

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &i64) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for i128

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &i128) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for isize

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &isize) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for u8

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &u8) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for u16

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &u16) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for u32

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &u32) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for u64

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &u64) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for u128

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &u128) -> bool

{ *self == *other }
Source§

impl PartialEqSpecImpl for usize

Source§

open spec fn obeys_eq_spec() -> bool

{ true }
Source§

open spec fn eq_spec(&self, other: &usize) -> bool

{ *self == *other }
Source§

impl<T: PartialEqSpec> PartialEqSpecImpl for Option<T>

Source§

open spec fn obeys_eq_spec() -> bool

{ T::obeys_eq_spec() }
Source§

open spec fn eq_spec(&self, other: &Option<T>) -> bool

{
    match (self, other) {
        (None, None) => true,
        (Some(x), Some(y)) => x.eq_spec(y),
        _ => false,
    }
}

Implementors§