pub fn check(data: &[u8]) -> Result<(), Error>
Checks whether data is a hex string.
data
This function returns Err if the content of data is invalid.
Err