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 Error for FromHexError[src]
impl Error for FromHexError[src]impl From<&'static str> for FromHexError[src]
impl From<&'static str> for FromHexError[src]fn from(err: &'static str) -> FromHexError[src]
impl From<ParseIntError> for FromHexError[src]
impl From<ParseIntError> for FromHexError[src]fn from(err: ParseIntError) -> 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<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]pub fn adapt_into_using<M>(Self, M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D[src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>, [src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>, [src]pub fn into_color(Self) -> U[src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>, [src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>, [src]pub fn into_color_unclamped(Self) -> U[src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>, [src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>, [src]