pub trait Encoder<T> {
// Required method
fn encode_input(
&self,
input: T,
writer: &mut dyn Write,
) -> Result<(usize, GroupedCountByteSize)>;
}
Required Methods§
sourcefn encode_input(
&self,
input: T,
writer: &mut dyn Write,
) -> Result<(usize, GroupedCountByteSize)>
fn encode_input( &self, input: T, writer: &mut dyn Write, ) -> Result<(usize, GroupedCountByteSize)>
Encodes the input into the provided writer.
§Errors
If an I/O error is encountered while encoding the input, an error variant will be returned.