I have a function that takes some number of byte strings: &[&[u8]] but want to call it with an argument of type Vec<Vec<u8>>. Calling the function like this:
let foo: Vec<Vec<u8>> = Vec::new();
bar(&foo[..]);
converts foo to a slice but not the values it contains. Is there a way to do this conversion easily and efficiently? Or can I change the type of the function argument to avoid cases like this?