pub trait KeyGenerator<K, Inputs>: 'static {
// Required method
fn generate(&self, inputs: &Inputs) -> K;
}
Expand description
A generator that creates a key for a given set of inputs
pub trait KeyGenerator<K, Inputs>: 'static {
// Required method
fn generate(&self, inputs: &Inputs) -> K;
}
A generator that creates a key for a given set of inputs