[−][src]Function rv::misc::vec_to_string
pub fn vec_to_string<T: Debug>(xs: &[T], max_entries: usize) -> String
Convert a Vector to a printable string
Example
let xs: Vec<u8> = vec![0, 1, 2, 3, 4, 5]; assert_eq!(vec_to_string(&xs, 6).as_str(), "[0, 1, 2, 3, 4, 5]"); assert_eq!(vec_to_string(&xs, 5).as_str(), "[0, 1, 2, 3, ... , 5]");