What is the recommended way to declare a struct that contains an array, and then create a zero-initialized instance?
Here is the struct:
#[derive(De
If you're sure to initialize every field with zero, this would work:
impl Default for Histogram { fn default() -> Histogram { unsafe { std::mem::zeroed() } } }