pub fn with_cast_mut_vec<T: Pod, U: Pod, R, F: FnOnce(&mut Vec<U>) -> R>( v: &mut Vec<T>, f: F, ) -> R