macro_rules! copy_byte_array_from_slice {
($slice:expr, $len:expr) => { ... };
}Expand description
Copies first $len bytes from $slice and returns them as an array.
Returns None if $len > $slice.len(). $len must be (obviously) statically known.
Calling from non-const context doesn’t affect performance.