pub trait FastSerialize {
// Required method
fn write_to_buffer(&self, buffer: &mut Vec<u8>);
// Provided method
fn size_hint(&self) -> usize { ... }
}
Expand description
Trait for types that can be efficiently serialized for logging
Required Methods§
Sourcefn write_to_buffer(&self, buffer: &mut Vec<u8>)
fn write_to_buffer(&self, buffer: &mut Vec<u8>)
Write the value to the buffer in binary format