Skip to main content

ICompatibleComparer_2Methods

Trait ICompatibleComparer_2Methods 

Source
pub trait ICompatibleComparer_2Methods: ICompatibleComparer_2 {
    // Provided methods
    fn ctor(
        self,
        comparer: impl Into<IComparer_Interface>,
        hash_code_provider: impl Into<IHashCodeProvider>,
    ) { ... }
    fn equals(self, a: impl Into<Object>, b: impl Into<Object>) -> bool { ... }
    fn get_hash_code(self, obj: impl Into<Object>) -> i32 { ... }
    fn get_comparer(self) -> IComparer_Interface { ... }
    fn get_hash_code_provider(self) -> IHashCodeProvider { ... }
}

Provided Methods§

Source

fn ctor( self, comparer: impl Into<IComparer_Interface>, hash_code_provider: impl Into<IHashCodeProvider>, )

.ctor(crate::system::collections::icomparer_interface::IComparer_Interface, crate::system::collections::ihashcodeprovider::IHashCodeProvider) overload

Source

fn equals(self, a: impl Into<Object>, b: impl Into<Object>) -> bool

Equals(crate::system::object::Object, crate::system::object::Object) overload

Source

fn get_hash_code(self, obj: impl Into<Object>) -> i32

GetHashCode(crate::system::object::Object) overload

Source

fn get_comparer(self) -> IComparer_Interface

get_Comparer() overload

Source

fn get_hash_code_provider(self) -> IHashCodeProvider

get_HashCodeProvider() overload

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§

Source§

impl<__T: ICompatibleComparer_2> ICompatibleComparer_2Methods for __T

Available on crate feature system-collections-specialized-compatiblecomparer_2 only.