In rust, if I have a vector of references, I can do this:
fn example() { return references.into_iter().map(|x| *x).