pub trait EncoderCreationEngine<Config, Encoder>: AbstractEnginewhere
    Encoder: EncoderEntity,
{ fn create_encoder_from(
        &mut self,
        config: &Config
    ) -> Result<Encoder, EncoderCreationError<Self::EngineError>>; unsafe fn create_encoder_from_unchecked(
        &mut self,
        config: &Config
    ) -> Encoder; }
Expand description

A trait for engines creating encoders from configurations.

Semantics

This pure operation generates an encoder from the config configuration.

Formal Definition

Required Methods

Creates an encoder from a config.

Unsafely creates an encoder from a config.

Safety

For the general safety concerns regarding this operation, refer to the different variants of EncoderCreationError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors

Description:

Implementation of EncoderCreationEngine for DefaultEngine that creates an encoder to encode 64 bits floating point numbers.

Description:

Implementation of EncoderCreationEngine for DefaultEngine that creates an encoder to encode 64 bits floating point numbers.