Expand description
The SimpleEncoder provides a simpler interface than the Encoder
to implement a custom RMT encoder.
The encoder will take care of allocating a target buffer for the output symbols
and will call a user-provided callback (EncoderCallback) to fill the buffer with symbols.
Structs§
- NotEnough
Space - The encoder was unable to encode all the input data into the provided buffer, it might have encoded some data (or it didn’t), but there remains more to encode.
- Simple
Encoder - This type represents the simple encoder, it wraps a
EncoderCallbackto delegate the encoding work to it. - Simple
Encoder Config - Configuration for the
SimpleEncoder. - Symbol
Buffer - A helper to write symbols into a buffer, tracking how many symbols were written.
Traits§
- Encoder
Callback - Trait that is implemented by types that can be used as callbacks for the
SimpleEncoder.