| 1 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#; |
| 2 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/; |
| 3 | |
| 4 | /// An error which can be returned when parsing a CSS color string. |
| 5 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, PartialOrdrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialOrd:, Ordrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)] |
| 6 | pub enum ParseColorErrorrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError# { |
| 7 | /// A CSS color string was invalid hex format. |
| 8 | InvalidHexrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHex#, |
| 9 | /// A CSS color string was invalid rgb format. |
| 10 | InvalidRgbrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidRgb#, |
| 11 | /// A CSS color string was invalid hsl format. |
| 12 | InvalidHslrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHsl#, |
| 13 | /// A CSS color string was invalid hwb format. |
| 14 | InvalidHwbrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHwb#, |
| 15 | /// A CSS color string was invalid hsv format. |
| 16 | InvalidHsvrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHsv#, |
| 17 | /// A CSS color string was invalid lab format. |
| 18 | InvalidLabrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidLab#, |
| 19 | /// A CSS color string was invalid lch format. |
| 20 | InvalidLchrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidLch#, |
| 21 | /// A CSS color string was invalid oklab format. |
| 22 | InvalidOklabrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidOklab#, |
| 23 | /// A CSS color string was invalid oklch format. |
| 24 | InvalidOklchrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidOklch#, |
| 25 | /// A CSS color string was invalid color function. |
| 26 | InvalidFunctionrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidFunction#, |
| 27 | /// A CSS color string was invalid unknown format. |
| 28 | InvalidUnknownrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidUnknown#, |
| 29 | } |
| 30 | |
| 31 | impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for ParseColorErrorrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError# { |
| 32 | fn fmtrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 33 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 34 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidHexrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHex# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid hex format"), |
| 35 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidRgbrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidRgb# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid rgb format"), |
| 36 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidHslrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHsl# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid hsl format"), |
| 37 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidHwbrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHwb# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid hwb format"), |
| 38 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidHsvrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidHsv# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid hsv format"), |
| 39 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidLabrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidLab# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid lab format"), |
| 40 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidLchrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidLch# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid lch format"), |
| 41 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidOklabrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidOklab# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid oklab format"), |
| 42 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidOklchrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidOklch# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid oklch format"), |
| 43 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidFunctionrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidFunction# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid color function"), |
| 44 | Selfrust-analyzer cargo csscolorparser 0.8.3 error/impl#[ParseColorError][Display]::InvalidUnknownrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError#InvalidUnknown# => f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("invalid unknown format"), |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | impl Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for ParseColorErrorrust-analyzer cargo csscolorparser 0.8.3 error/ParseColorError# {} |