Skip to main content

fmt_hex_exact

Macro fmt_hex_exact 

Source
macro_rules! fmt_hex_exact {
    ($formatter:expr, $len:expr, $bytes:expr, $case:expr) => { ... };
}
Expand description

Formats bytes as hex with runtime and compile-time length checks.

ยงPanics

This macro panics if $len is not equal to $bytes.len()

See fmt_hex_max for details.