#[non_exhaustive]#[repr(u8)]pub enum Kind {
DarkColor = 0,
DarkNeutral = 1,
LightNeutral = 2,
MakeUpColor = 3,
MediumNeutral = 4,
MutedColor = 5,
NeonColor = 6,
PainterlyNeutral = 7,
Pastel = 8,
SaturatedColor = 9,
TintedColor = 10,
}Expand description
Color kind / texture classification sourced from the upstream color_hierarchy.csv
color_type column. Marked #[non_exhaustive] so adding a
new upstream value is a non-breaking change for downstream
consumers; call Kind::as_str to get the original
string back when you need to feed it into a search index.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DarkColor = 0
Variant for dark color.
DarkNeutral = 1
Variant for dark neutral.
LightNeutral = 2
Variant for light neutral.
MakeUpColor = 3
Variant for make-up color.
MediumNeutral = 4
Variant for medium neutral.
MutedColor = 5
Variant for muted color.
NeonColor = 6
Variant for neon color.
PainterlyNeutral = 7
Variant for painterly neutral.
Pastel = 8
Variant for pastel.
SaturatedColor = 9
Variant for saturated color.
TintedColor = 10
Variant for tinted color.
Implementations§
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more