#[non_exhaustive]pub enum InvalidColorError {
Indexed,
Red,
Green,
Blue,
Invalid,
}Expand description
A invalid color error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Indexed
The indexed color is invalid.
Red
The red color is invalid.
Green
The green color is invalid.
Blue
The blue color is invalid.
Invalid
An unknown color was used.
Trait Implementations§
Source§impl Clone for InvalidColorError
impl Clone for InvalidColorError
Source§fn clone(&self) -> InvalidColorError
fn clone(&self) -> InvalidColorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvalidColorError
impl Debug for InvalidColorError
Source§impl Display for InvalidColorError
impl Display for InvalidColorError
Source§impl Error for InvalidColorError
impl Error for InvalidColorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for InvalidColorError
impl PartialEq for InvalidColorError
impl Copy for InvalidColorError
impl Eq for InvalidColorError
impl StructuralPartialEq for InvalidColorError
Auto Trait Implementations§
impl Freeze for InvalidColorError
impl RefUnwindSafe for InvalidColorError
impl Send for InvalidColorError
impl Sync for InvalidColorError
impl Unpin for InvalidColorError
impl UnwindSafe for InvalidColorError
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