material-color-utils 0.1.3

Color libraries for Google's Material You
Documentation
1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Debug, Error)]
pub enum ColorParseError {
    #[error("Hex string must be 6 or 8 characters (plus optional #)")]
    InvalidLength,

    #[error("Invalid hex characters: {0}")]
    InvalidHex(#[from] std::num::ParseIntError),
}