/// Emit each item to the output using the given emit function.
/// Prefixes the items with the length of the slice.
///
/// See https://webassembly.github.io/spec/core/binary/conventions.html#vectors
Emit each item to the output using the given emit function.
Prefixes the items with the length of the slice.


Emit each item to the output using the given emit function . Prefixes the items with the length of the slice .
pub fn emit_vector<I, E, O>(items: I, output: &mut O, emit: E) -> Result<usize, EmitError>
where
    I: IntoIterator,
    <I as IntoIterator>::IntoIter: Clone,
    O: Write + ?Sized,
    E: Fn(I::Item, &mut O) -> Result<usize, EmitError>,
{
    emit_iterator(items, output, true, emit)
}
pub fn emit_vector < I , E , O > ( items : I , output : & mut O , emit : E ) -> Result < usize , EmitError > where I : IntoIterator , < I as IntoIterator > :: IntoIter : Clone , O : Write + ? Sized , E : Fn ( I :: Item , & mut O ) -> Result < usize , EmitError > , { emit_iterator ( items , output , true , emit ) }
Emit each item to the output using the given emit function.
Emit each item to the output using the given emit function .
items
I
output
&mut O
emit
E