pub enum ColorError {
InvalidColor,
OutOfBounds(u8, u8),
}
Expand description
An error that occurred when parsing colors.
Variants§
InvalidColor
Error raised when the color was not a valid number.
OutOfBounds(u8, u8)
Error raised when the color was number outside of the allowed bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorError
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