Trait musli_binary_common::writer::Writer
source · [−]pub trait Writer {
type Error: Error;
fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Self::Error>;
fn write_byte(&mut self, b: u8) -> Result<(), Self::Error> { ... }
fn write_array<const N: usize>(
&mut self,
array: [u8; N]
) -> Result<(), Self::Error> { ... }
}
Expand description
The trait governing how a writer works.