Hasher

Trait Hasher 

Source
pub trait Hasher {
    // Required method
    fn hash_key(&self) -> String;
}
Expand description

A trait for objects that can provide a hash for memoization. This matches the Go Hasher interface.

Required Methods§

Source

fn hash_key(&self) -> String

Returns a stable hash key representing the object’s state for caching.

Implementors§