[−][src]Enum scarlet::color::RGBParseError
An error type that results from an invalid attempt to convert a string into an RGB color.
Variants
This indicates that function syntax was acceptable, but the numbers were out of range, such as
the invalid string "rgb(554, 23, 553)"
.
This indicates that the hex string was malformed in some way.
This indicates a syntax error in the string that was supposed to be a valid rgb( function.
This indicated an invalid color name was supplied to the from_color_name()
function.
Trait Implementations
impl Clone for RGBParseError
[src]
fn clone(&self) -> RGBParseError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RGBParseError
[src]
impl Debug for RGBParseError
[src]
impl Display for RGBParseError
[src]
impl Eq for RGBParseError
[src]
impl Error for RGBParseError
[src]
fn description(&self) -> &str
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ParseIntError> for RGBParseError
[src]
fn from(_err: ParseIntError) -> RGBParseError
[src]
impl Hash for RGBParseError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RGBParseError> for RGBParseError
[src]
fn eq(&self, other: &RGBParseError) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for RGBParseError
[src]
impl StructuralPartialEq for RGBParseError
[src]
Auto Trait Implementations
impl RefUnwindSafe for RGBParseError
impl Send for RGBParseError
impl Sync for RGBParseError
impl Unpin for RGBParseError
impl UnwindSafe for RGBParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,