1 2 3 4 5 6 7 8
//! Helper Methods //! extern crate cxx; pub fn cxx_vector_into_vector<T: cxx::vector::VectorElement + Clone>(vec_cxx: &cxx::Vector<T>) -> Vec<T> { vec_cxx.iter().cloned().collect() }