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
sourceimpl Debug for ColorError
impl Debug for ColorError
sourceimpl Display for ColorError
impl Display for ColorError
sourceimpl Error for ColorError
impl Error for ColorError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl PartialEq<ColorError> for ColorError
impl PartialEq<ColorError> for ColorError
sourcefn eq(&self, other: &ColorError) -> bool
fn eq(&self, other: &ColorError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more