Skip to main content

EqKey

Trait EqKey 

Source
pub trait EqKey<A: ?Sized, B: ?Sized> {
    // Required method
    fn eq_key(&self, a: &A, b: &B) -> bool;
}
Expand description

Test two borrowed keys for equality.

Required Methods§

Source

fn eq_key(&self, a: &A, b: &B) -> bool

Whether a and b are the same key.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A, B> EqKey<A, B> for StdEq
where A: PartialEq<B> + ?Sized, B: ?Sized,