Macro hex
Source macro_rules! hex {
($hex:expr) => { ... };
}
Expand description
Parses hex strings in const contexts.
This is primarily useful for testing, panics on all error paths.
§Returns
[u8; N] array containing the parsed data if valid.
§Panics
Panics on all error paths:
- If input string is not even length.
- If input string contains non-hex characters.