[][src]Enum scarlet::color::RGBParseError

pub enum RGBParseError {
    OutOfRange,
    InvalidHexSyntax,
    InvalidFuncSyntax,
    InvalidX11Name,
}

An error type that results from an invalid attempt to convert a string into an RGB color.

Variants

OutOfRange

This indicates that function syntax was acceptable, but the numbers were out of range, such as the invalid string "rgb(554, 23, 553)".

InvalidHexSyntax

This indicates that the hex string was malformed in some way.

InvalidFuncSyntax

This indicates a syntax error in the string that was supposed to be a valid rgb( function.

InvalidX11Name

This indicated an invalid color name was supplied to the from_color_name() function.

Trait Implementations

impl Clone for RGBParseError[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]

impl From<ParseIntError> for RGBParseError[src]

impl Hash for RGBParseError[src]

impl PartialEq<RGBParseError> for RGBParseError[src]

impl StructuralEq for RGBParseError[src]

impl StructuralPartialEq for RGBParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.