Skip to main content

impl_bytes_newtype

Macro impl_bytes_newtype 

Source
macro_rules! impl_bytes_newtype {
    ($t:ident, $len:expr) => { ... };
}
Expand description

Implements several traits for byte-based newtypes. Implements:

  • std::fmt::LowerHex (implies hashes::hex::ToHex)
  • std::fmt::Display
  • std::str::FromStr
  • hashes::hex::FromHex