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 RangeCfg are involved.
Traitsยง
- Decode
Ext - Extension trait providing ergonomic decode method for types requiring no specific configuration.
- Decode
Range Ext - Extension trait for reading types whose config is
(RangeCfg, X)
whereX
is Default, 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
(RangeCfg, X)
whereX
is Default.