Skip to main content

IEqualityComparer_1Methods

Trait IEqualityComparer_1Methods 

Source
pub trait IEqualityComparer_1Methods<T0: ClassIdentity>: ClassIdentity {
    // Provided methods
    fn get_default() -> EqualityComparer_1<T0> { ... }
    fn create_comparer() -> EqualityComparer_1<T0> { ... }
    fn equals(self, x: T0, y: T0) -> bool
       where Self: Sized + Into<IlInstance> { ... }
    fn get_hash_code(self, obj: T0) -> i32
       where Self: Sized + Into<IlInstance> { ... }
    fn index_of(
        self,
        array: Array<T0>,
        value: T0,
        start_index: i32,
        count: i32,
    ) -> i32
       where Self: Sized { ... }
    fn last_index_of(
        self,
        array: Array<T0>,
        value: T0,
        start_index: i32,
        count: i32,
    ) -> i32
       where Self: Sized { ... }
    fn system_collections_i_equality_comparer_get_hash_code(
        self,
        obj: Object,
    ) -> i32
       where Self: Sized { ... }
    fn system_collections_i_equality_comparer_equals(
        self,
        x: Object,
        y: Object,
    ) -> bool
       where Self: Sized { ... }
    fn ctor(self)
       where Self: Sized { ... }
}

Provided Methods§

Source

fn get_default() -> EqualityComparer_1<T0>

Source

fn create_comparer() -> EqualityComparer_1<T0>

Source

fn equals(self, x: T0, y: T0) -> bool
where Self: Sized + Into<IlInstance>,

Source

fn get_hash_code(self, obj: T0) -> i32
where Self: Sized + Into<IlInstance>,

Source

fn index_of( self, array: Array<T0>, value: T0, start_index: i32, count: i32, ) -> i32
where Self: Sized,

Source

fn last_index_of( self, array: Array<T0>, value: T0, start_index: i32, count: i32, ) -> i32
where Self: Sized,

Source

fn system_collections_i_equality_comparer_get_hash_code( self, obj: Object, ) -> i32
where Self: Sized,

Source

fn system_collections_i_equality_comparer_equals( self, x: Object, y: Object, ) -> bool
where Self: Sized,

Source

fn ctor(self)
where Self: Sized,

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.

Implementors§