pub fn write_vec<T, W: Write, F: Fn(&T, &mut W) -> Result<()>>( f: F, values: &[T], w: &mut W, ) -> Result<()>
Write a list of elements, with length-prefixing.