Enum kpdb::ColorError
[−]
[src]
pub enum ColorError { HexStringNoHashSign, HexStringTooLong, HexStringTooShort, InvalidBlueValue, InvalidGreenValue, InvalidRedValue, }
Error type for color conversion errors.
Variants
HexStringNoHashSign
The hex string doens't start with a '#' character.
HexStringTooLong
The hex string is too long.
HexStringTooShort
The hex string is too short.
InvalidBlueValue
The hex string's blue part is an invalid value.
InvalidGreenValue
The hex string's green part is an invalid value.
InvalidRedValue
The 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) -> bool
1.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