pub trait StaticTypeRefEquivalentor<'a, T>: StaticEquivalentor<T>{
// Required methods
fn equivalent_ref(a: &T, b: &T::Ref<'a>) -> bool;
fn equivalent_refs(a: &T::Ref<'a>, b: &T::Ref<'a>) -> bool;
}Expand description
Stateless equivalence trait
Required Methods§
Sourcefn equivalent_ref(a: &T, b: &T::Ref<'a>) -> bool
fn equivalent_ref(a: &T, b: &T::Ref<'a>) -> bool
Compare a to b and return true if they are equal.
Sourcefn equivalent_refs(a: &T::Ref<'a>, b: &T::Ref<'a>) -> bool
fn equivalent_refs(a: &T::Ref<'a>, b: &T::Ref<'a>) -> bool
Compare a to b and return true if they are equal.
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.