Enum kpdb::ColorError
[−]
[src]
pub enum ColorError {
HexStringNoHashSign,
HexStringTooLong,
HexStringTooShort,
InvalidBlueValue,
InvalidGreenValue,
InvalidRedValue,
}Error type for color conversion errors.
Variants
HexStringNoHashSignThe hex string doens't start with a '#' character.
HexStringTooLongThe hex string is too long.
HexStringTooShortThe hex string is too short.
InvalidBlueValueThe hex string's blue part is an invalid value.
InvalidGreenValueThe hex string's green part is an invalid value.
InvalidRedValueThe hex string's red part is an invalid value.
Trait Implementations
impl Debug for ColorError[src]
impl PartialEq for ColorError[src]
fn eq(&self, __arg_0: &ColorError) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Display for ColorError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more