OperatorHash

Trait OperatorHash 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl OperatorHash for Mask

Source§

fn operator_hash<H: Hasher>(&self, state: &mut H)

Source§

impl<T> OperatorHash for Buffer<T>

Source§

fn operator_hash<H: Hasher>(&self, state: &mut H)

Implementors§