pub trait InvalidChar {
// Required method
fn invalid_char(ch: char, index: usize) -> Self;
}Expand description
Trait implemented by error types used by
ParseHexStr::from_hex_str.
The method is called when 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 given to
ParseHexStr::from_hex_str.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".