pub trait Packer {
type Error;
fn pack_bytes<B: AsRef<[u8]>>(
&mut self,
bytes: B
) -> Result<(), Self::Error>;
}
Expand description
A type that can pack any value that implements Packable
.
pub trait Packer {
type Error;
fn pack_bytes<B: AsRef<[u8]>>(
&mut self,
bytes: B
) -> Result<(), Self::Error>;
}
A type that can pack any value that implements Packable
.