pub trait Descriptor {
type OutputEncoder: Encoder;
// Required methods
fn create(&self) -> Self::OutputEncoder;
fn describe(&self) -> &Descr;
}Expand description
Used to get the descriptor of a codec and create its own encoder.
Required Associated Types§
Sourcetype OutputEncoder: Encoder
type OutputEncoder: Encoder
The specific type of the encoder.
Required Methods§
Sourcefn create(&self) -> Self::OutputEncoder
fn create(&self) -> Self::OutputEncoder
Creates a new encoder for the requested codec.