Enum kpdb::ColorError
source · pub enum ColorError {
HexStringNoHashSign,
HexStringTooLong,
HexStringTooShort,
InvalidBlueValue,
InvalidGreenValue,
InvalidRedValue,
}
Expand description
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§
source§impl Debug for ColorError
impl Debug for ColorError
source§impl Display for ColorError
impl Display for ColorError
source§impl Error for ColorError
impl Error for ColorError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl PartialEq<ColorError> for ColorError
impl PartialEq<ColorError> for ColorError
source§fn eq(&self, other: &ColorError) -> bool
fn eq(&self, other: &ColorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ColorError
Auto Trait Implementations§
impl RefUnwindSafe for ColorError
impl Send for ColorError
impl Sync for ColorError
impl Unpin for ColorError
impl UnwindSafe for ColorError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more