Enum array_bytes::Error
source · pub enum Error {
InvalidLength,
InvalidCharacter {
character: char,
index: usize,
},
MismatchedLength {
expect: usize,
},
Utf8Error(Utf8Error),
ParseIntError(ParseIntError),
}
Expand description
The main error of array-bytes.
Variants§
InvalidLength
The length must not be odd.
InvalidCharacter
Found the invalid character at index
.
MismatchedLength
The data can not fit the array/slice length well.
Utf8Error(Utf8Error)
Failed to parse the hex number from hex string.
ParseIntError(ParseIntError)
Failed to parse the hex number from hex string.