write_vec_u16_cb

Function write_vec_u16_cb 

Source
pub fn write_vec_u16_cb<W: Writer, T, F>(
    input: &[T],
    writer: &mut W,
    cb: &F,
) -> Result<(), Error>
where F: Fn(&T, &mut W) -> Result<(), Error>,
Expand description

Writes a vector of values to the given writer using the provided callback to serialize each value. This function differs from write_vec_cb in that it uses u16 prefixes to give the length of the vector instead of a BigSize.