Function linkspace::prelude::ab

pub const fn ab<const N: usize>(val: &[u8]) -> AB<[u8; N]>
Expand description

copy val into array of N bytes prepending 0’s as needed. panic if val > N

    assert_eq!(ab::<8>(b"abcd"),AB([0,0,0,0,97,98,99,100]));