pub enum ColorParsingError {
InvalidChar(char),
InvalidLength(usize),
}
Expand description
Error type for color parsing failures
Variants§
InvalidChar(char)
Contains the invalid character found during parsing
InvalidLength(usize)
Contains the unexpected input length
Trait Implementations§
Source§impl Clone for ColorParsingError
impl Clone for ColorParsingError
Source§fn clone(&self) -> ColorParsingError
fn clone(&self) -> ColorParsingError
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 ColorParsingError
impl Debug for ColorParsingError
Source§impl Display for ColorParsingError
impl Display for ColorParsingError
Source§impl Error for ColorParsingError
impl Error for ColorParsingError
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 ColorParsingError
impl PartialEq for ColorParsingError
impl Copy for ColorParsingError
impl Eq for ColorParsingError
impl StructuralPartialEq for ColorParsingError
Auto Trait Implementations§
impl Freeze for ColorParsingError
impl RefUnwindSafe for ColorParsingError
impl Send for ColorParsingError
impl Sync for ColorParsingError
impl Unpin for ColorParsingError
impl UnwindSafe for ColorParsingError
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