Trait validators::traits::ValidateChar
source · pub trait ValidateChar: Sized {
type Error;
// Required methods
fn parse_char(c: char) -> Result<Self, Self::Error>;
fn validate_char(c: char) -> Result<(), Self::Error>;
}
Expand description
Validate and deserialize characters.
Required Associated Types§
Required Methods§
fn parse_char(c: char) -> Result<Self, Self::Error>
fn validate_char(c: char) -> Result<(), Self::Error>
Object Safety§
This trait is not object safe.