Trait KeyGenerator

Source
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

Required Methods§

Source

fn generate(&self, inputs: &Inputs) -> K

Generate a key from a set of inputs

Implementors§

Source§

impl<K, Inputs, Marker: 'static, F> KeyGenerator<K, Inputs> for FunctionKeyGenerator<F, Marker>
where F: FunctionKeygen<K, Inputs, Marker>,