1 2 3 4 5 6
/// Concatenate 2 `&[u8]` slices into a `Vec<u8>` /// /// TODO: Optimize or replace with a better method for this! pub fn concat(a: &[u8], b: &[u8]) -> Vec<u8> { [&a[..], &b[..]].concat() }
1 2 3 4 5 6
/// Concatenate 2 `&[u8]` slices into a `Vec<u8>` /// /// TODO: Optimize or replace with a better method for this! pub fn concat(a: &[u8], b: &[u8]) -> Vec<u8> { [&a[..], &b[..]].concat() }