Trait dusk_bytes::InvalidChar[][src]

pub trait InvalidChar {
    fn invalid_char(ch: char, index: usize) -> Self;
}
Expand description

Trait to be implemented for the associated Error used in [ParseHexStr::from_hex_str]. The function is called if an invalid character is found in the string slice.

Required methods

Invoked when a string slice with a non hex character is is give to [ParseHexStr::from_hex_str]

Implementors