pub trait OperatorHash {
// Required method
fn operator_hash<H: Hasher>(&self, state: &mut H);
}
Expand description
A hash trait for operators that loosens the semantics to permit pointer-based hashing for data objects such as buffers.
Note that since this trait can use pointer hashing, the hash is only valid for the lifetime of the object.
Required Methods§
fn operator_hash<H: Hasher>(&self, state: &mut H)
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.