Trait codicon::Encoder [−][src]
pub trait Encoder<T, E = Error> { fn encode<W: Write>(&self, writer: &mut W, params: T) -> Result<(), E>; }
Trait used to express encoding relationships.
Required Methods
fn encode<W: Write>(&self, writer: &mut W, params: T) -> Result<(), E>
Encodes to the writer with the given parameters.