Expand description
Extension traits for ergonomic operations on encoding and decoding.
These traits provide convenience methods (like read(), decode(), read_range(), and
decode_range()) that simplify common use cases of the core Read and Decode traits,
particularly when default configurations (()) or RangeConfig are involved.
Traitsยง
- Decode
Ext - Extension trait providing ergonomic decode method for types requiring no configuration
(i.e.
Cfg = ()). - Decode
Range Ext - Extension trait for decoding types whose config is
(RangeConfig, T), i.e., requiring a range but no specific inner configuration, ensuring the buffer is consumed. - ReadExt
- Extension trait providing ergonomic read method for types requiring no configuration
(i.e.
Cfg = ()). - Read
Range Ext - Extension trait for reading types whose config is
(RangeConfig, T)whereTis a unit type (a type of one possible value, such as()or((), ())).