Module extensions

Module extensions 

Source
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ยง

DecodeExt
Extension trait providing ergonomic decode method for types requiring no specific configuration.
DecodeRangeExt
Extension trait for reading types whose config is (RangeCfg, X) where X is Default, ensuring the buffer is consumed.
ReadExt
Extension trait providing ergonomic read method for types requiring no configuration (i.e. Cfg = ()).
ReadRangeExt
Extension trait for reading types whose config is (RangeCfg, X) where X is Default.