Macro scratchpad::array_type_for_bytes [−][src]
Declares a static array of the specified element type that is large enough for storage of a given byte count. The actual supported byte count may be larger due to padding.
Examples
#[macro_use] extern crate scratchpad; // `BufferType` is the same as `[u64; 4]`. type BufferType = array_type_for_bytes!(u64, 32); let buffer: BufferType = [1, 2, 3, 4];