pub trait InvalidChar {
    // Required method
    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§

source

fn invalid_char(ch: char, index: usize) -> Self

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

Object Safety§

This trait is not object safe.

Implementors§