let mut a = vec![1,2,3];
let mut b = vec![4,5];
a.append(&mut b);
b is empty, but it still exists.
I have come to love this characteristic of Rust that variables that shouldn't be used anymore are actually gone and I have found that most library functions come in a flavor that consumes (moves) their input values. Because of that a.append(&mut b) feels a bit strange. Is there an a.append(b) that I'm just not seeing or is there a particular reason against having that?