[][src]Trait codicon::Encoder

pub trait Encoder<T> {
    type Error;
    fn encode(&self, writer: impl Write, params: T) -> Result<(), Self::Error>;
}

Trait used to express encoding relationships.

Associated Types

type Error

Loading content...

Required methods

fn encode(&self, writer: impl Write, params: T) -> Result<(), Self::Error>

Encodes to the writer with the given parameters.

Loading content...

Implementors

Loading content...