Enum palette::rgb::FromHexError[][src]

pub enum FromHexError {
    ParseIntError(ParseIntError),
    HexFormatError(&'static str),
}

Error type for parsing a string of hexadecimal characters to an Rgb color.

Variants

ParseIntError(ParseIntError)

An error occurred while parsing the string into a valid integer.

HexFormatError(&'static str)

The hex value was not in a valid 3 or 6 character format.

Trait Implementations

impl Debug for FromHexError[src]

impl Display for FromHexError[src]

impl Error for FromHexError[src]

impl From<&'static str> for FromHexError[src]

impl From<ParseIntError> for FromHexError[src]

Auto Trait Implementations

impl RefUnwindSafe for FromHexError

impl Send for FromHexError

impl Sync for FromHexError

impl Unpin for FromHexError

impl UnwindSafe for FromHexError

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: FloatComponent,
    Swp: WhitePoint,
    Dwp: WhitePoint,
    D: AdaptFrom<S, Swp, Dwp, T>, 
[src]

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, U> IntoColor<U> for T where
    U: FromColor<T>, 
[src]

impl<T, U> IntoColorUnclamped<U> for T where
    U: FromColorUnclamped<T>, 
[src]

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.

impl<T, U> TryIntoColor<U> for T where
    U: TryFromColor<T>, 
[src]