Trait dusk_bytes::InvalidChar[][src]

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

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

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

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

Loading content...

Implementors

impl InvalidChar for Error[src]

Loading content...