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§
Sourcefn invalid_char(ch: char, index: usize) -> Self
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
]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.