Closed dlight closed 4 years ago
Also related to #7
After struggling a bit, it turns out there's two ways to write this without cloned
let slice: Vec<u8> = layers.iter().map(|i| i.iter()).flatten().map(|i| *i).collect();
let slice: Vec<u8> = layers.iter().map(|i| *i).flatten().map(|i| *i).collect();
But in the end, it probably doesn't matter because u8
is small and Copy
(cloning it isn't "bad"). So I'm closing it.
Related to #107