Skip to main content

hex_to_array

Function hex_to_array 

Source
pub fn hex_to_array<const N: usize>(s: &str) -> Option<[u8; N]>
Expand description

Decode a hex string to a fixed-size array. Returns None on invalid input or wrong length.