Skip to main content

to_vec

Function to_vec 

Source
pub fn to_vec(events: &[Event<'_>]) -> Result<Vec<u8>, Error>
Expand description

Write &[Event] to Vec<u8>. Defines a default track with track_id of 0.

See also Metro::to_vec.

See also to_string and to_writer.