Skip to main content

encode_to_display

Function encode_to_display 

Source
pub fn encode_to_display<E: Encode>(value: &E) -> Result<EncodedBytesOwned>
Available on crate feature alloc only.
Expand description

Encode a value and return it wrapped for human-readable display.

Returns an EncodedBytesOwned that implements Display, LowerHex, UpperHex, and provides a hex_dump() method.