assert_configuration_hash_entry_size

Macro assert_configuration_hash_entry_size 

Source
macro_rules! assert_configuration_hash_entry_size {
    ($model:ident, $size:literal) => { ... };
}
Expand description

A macro for static assertion on the size of the configuration hash entry.

Usage is assert_configuration_hash_entry_size!(ModelType, size) to statically assert that the size of a configuration hash entry is as expected, to ensure this size is cache-friendly.