Trait RawEq
pub trait RawEq {
// Required method
unsafe fn raw_eq(a: *const c_void, b: *const c_void) -> bool;
// Provided method
fn raw_eq_cb( ) -> Unsafe<&'static (dyn Fn(*const c_void, *const c_void) -> bool + Send + Sync)> { ... }
}Expand description
Trait implemented automatically for types that implement Eq that can compare two values
through their pointers.
Required Methods§
Provided Methods§
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.