im-rc::Vector<u8> to Vec<u8>

to avoid reallocations you could use let mut y = Vec::with_capacity(im_vec.len());, though apparently the iterator syntax does the same in some cases