pub trait BuildStatsCollector {
    // Provided methods
    fn level(&mut self, _input_size: usize, _level_size: usize) { ... }
    fn end(&mut self, _remaining_keys: usize) { ... }
}
Expand description

Trait for collecting (and summarizing or reporting) events during construction of a minimal perfect hashing function.

Provided Methods§

source

fn level(&mut self, _input_size: usize, _level_size: usize)

Called once at each level to indicate sizes of input and level. Default implementation do nothing.

source

fn end(&mut self, _remaining_keys: usize)

Called once at the end of the building process with number of remaining (unsupported) keys (0 when construction has been successful). Default implementation do nothing.

Implementations on Foreign Types§

source§

impl BuildStatsCollector for ()

Ignores all events and does nothing.

Implementors§