Macros§
- impl_
byte_ array - Impls
ByteArrayfor a transparent newtype over[u8; N] - impl_
debug_ display_ as_ hex - Impls Debug + Display for a
ByteArraytype formatted as a hex string. - impl_
debug_ display_ redacted - Impls Debug + Display with secret values redacted.
Useful for preventing the accidental leakage of secrets in logs.
Can technically be used for non
ByteArraytypes as well. - impl_
fromstr_ fromhex - Impls
FromStrandFromHexfor aByteArrayparsed from a hex string.
Traits§
- Byte
Array - A trait for types represented in memory as a byte array. Should NOT be implemented for types that require validation of the byte array contents.