pub enum RgbaParseError {
InvalidLength {
value: String,
},
InvalidHex {
value: String,
component: char,
},
}Expand description
Error returned when a manifest color is malformed.
Variants§
InvalidLength
The color did not have a supported number of hex digits.
InvalidHex
The color contains a non-hexadecimal character.
Trait Implementations§
Source§impl Debug for RgbaParseError
impl Debug for RgbaParseError
Source§impl Display for RgbaParseError
impl Display for RgbaParseError
Source§impl Error for RgbaParseError
impl Error for RgbaParseError
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()
Auto Trait Implementations§
impl Freeze for RgbaParseError
impl RefUnwindSafe for RgbaParseError
impl Send for RgbaParseError
impl Sync for RgbaParseError
impl Unpin for RgbaParseError
impl UnsafeUnpin for RgbaParseError
impl UnwindSafe for RgbaParseError
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