Trait ssd1306::size::NewZeroed

source ·
pub trait NewZeroed {
    // Required method
    fn new_zeroed() -> Self;
}
Expand description

Workaround trait, since Default is only implemented to arrays up to 32 of size

Required Methods§

source

fn new_zeroed() -> Self

Creates a new value with its memory set to zero

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<const N: usize> NewZeroed for [u8; N]

source§

fn new_zeroed() -> Self

Implementors§