Turning a slice of arrays into a slice of values?

I'm wondering what the nicest approach would be to take a slice of u64 and turn it into a slice of u8 (or other smaller data) that points to the same data?

fn u64_slice_to_u8_slice(input: &[u64]) -> &[u8] { ... }



This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.