Macro array_bytes::dyn2array[][src]

macro_rules! dyn2array {
    ($dyn : expr, $len : expr) => { ... };
}
Expand description

Slice/Vec(Bytes) to [u8; _]

Examples

assert_eq!([0; 8], array_bytes::dyn2array!(vec![0; 10], 8));