diffus

Trait Same

Source
pub trait Same {
    // Required method
    fn same(&self, other: &Self) -> bool;
}

Required Methods§

Source

fn same(&self, other: &Self) -> 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 Same for bool

Source§

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

Source§

impl Same for char

Source§

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

Source§

impl Same for f32

Source§

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

Source§

impl Same for f64

Source§

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

Source§

impl Same for i8

Source§

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

Source§

impl Same for i16

Source§

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

Source§

impl Same for i32

Source§

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

Source§

impl Same for i64

Source§

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

Source§

impl Same for isize

Source§

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

Source§

impl Same for str

Source§

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

Source§

impl Same for u8

Source§

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

Source§

impl Same for u16

Source§

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

Source§

impl Same for u32

Source§

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

Source§

impl Same for u64

Source§

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

Source§

impl Same for ()

Source§

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

Source§

impl Same for usize

Source§

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

Source§

impl<T: Same + ?Sized> Same for &T

Source§

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

Source§

impl<T: Same> Same for Option<T>

Source§

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

Implementors§