Enum kpdb::ColorError [] [src]

pub enum ColorError {
    HexStringNoHashSign,
    HexStringTooLong,
    HexStringTooShort,
    InvalidBlueValue,
    InvalidGreenValue,
    InvalidRedValue,
}

Error type for color conversion errors.

Variants

The hex string doens't start with a '#' character.

The hex string is too long.

The hex string is too short.

The hex string's blue part is an invalid value.

The hex string's green part is an invalid value.

The hex string's red part is an invalid value.

Trait Implementations

impl Debug for ColorError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ColorError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for ColorError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for ColorError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more