pub trait RawHash {
// Required method
unsafe fn raw_hash(ptr: *const c_void) -> u64;
// Provided method
fn raw_hash_cb( ) -> Unsafe<&'static (dyn Fn(*const c_void) -> u64 + Sync + Send + 'static)> { ... }
}Expand description
Required Methods§
Provided Methods§
Sourcefn raw_hash_cb() -> Unsafe<&'static (dyn Fn(*const c_void) -> u64 + Sync + Send + 'static)>
fn raw_hash_cb() -> Unsafe<&'static (dyn Fn(*const c_void) -> u64 + Sync + Send + 'static)>
Get a callback suitable for SchemaData.
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.