Enum Named

Source
pub enum Named {
Show 148 variants Aliceblue, Antiquewhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, Blanchedalmond, Blue, Blueviolet, Brown, Burlywood, Cadetblue, Chartreuse, Chocolate, Coral, Cornflowerblue, Cornsilk, Crimson, Cyan, Darkblue, Darkcyan, Darkgoldenrod, Darkgray, Darkgreen, Darkgrey, Darkkhaki, Darkmagenta, Darkolivegreen, Darkorange, Darkorchid, Darkred, Darksalmon, Darkseagreen, Darkslateblue, Darkslategray, Darkslategrey, Darkturquoise, Darkviolet, Deeppink, Deepskyblue, Dimgray, Dimgrey, Dodgerblue, Firebrick, Floralwhite, Forestgreen, Fuchsia, Gainsboro, Ghostwhite, Gold, Goldenrod, Gray, Green, Greenyellow, Grey, Honeydew, Hotpink, Indianred, Indigo, Ivory, Khaki, Lavender, Lavenderblush, Lawngreen, Lemonchiffon, Lightblue, Lightcoral, Lightcyan, Lightgoldenrodyellow, Lightgray, Lightgreen, Lightgrey, Lightpink, Lightsalmon, Lightseagreen, Lightskyblue, Lightslategray, Lightslategrey, Lightsteelblue, Lightyellow, Lime, Limegreen, Linen, Magenta, Maroon, Mediumaquamarine, Mediumblue, Mediumorchid, Mediumpurple, Mediumseagreen, Mediumslateblue, Mediumspringgreen, Mediumturquoise, Mediumvioletred, Midnightblue, Mintcream, Mistyrose, Moccasin, Navajowhite, Navy, Oldlace, Olive, Olivedrab, Orange, Orangered, Orchid, Palegoldenrod, Palegreen, Paleturquoise, Palevioletred, Papayawhip, Peachpuff, Peru, Pink, Plum, Powderblue, Purple, Rebeccapurple, Red, Rosybrown, Royalblue, Saddlebrown, Salmon, Sandybrown, Seagreen, Seashell, Sienna, Silver, Skyblue, Slateblue, Slategray, Slategrey, Snow, Springgreen, Steelblue, Tan, Teal, Thistle, Tomato, Turquoise, Violet, Wheat, White, Whitesmoke, Yellow, Yellowgreen,
}

Variants§

§

Aliceblue

§

Antiquewhite

§

Aqua

§

Aquamarine

§

Azure

§

Beige

§

Bisque

§

Black

§

Blanchedalmond

§

Blue

§

Blueviolet

§

Brown

§

Burlywood

§

Cadetblue

§

Chartreuse

§

Chocolate

§

Coral

§

Cornflowerblue

§

Cornsilk

§

Crimson

§

Cyan

§

Darkblue

§

Darkcyan

§

Darkgoldenrod

§

Darkgray

§

Darkgreen

§

Darkgrey

§

Darkkhaki

§

Darkmagenta

§

Darkolivegreen

§

Darkorange

§

Darkorchid

§

Darkred

§

Darksalmon

§

Darkseagreen

§

Darkslateblue

§

Darkslategray

§

Darkslategrey

§

Darkturquoise

§

Darkviolet

§

Deeppink

§

Deepskyblue

§

Dimgray

§

Dimgrey

§

Dodgerblue

§

Firebrick

§

Floralwhite

§

Forestgreen

§

Fuchsia

§

Gainsboro

§

Ghostwhite

§

Gold

§

Goldenrod

§

Gray

§

Green

§

Greenyellow

§

Grey

§

Honeydew

§

Hotpink

§

Indianred

§

Indigo

§

Ivory

§

Khaki

§

Lavender

§

Lavenderblush

§

Lawngreen

§

Lemonchiffon

§

Lightblue

§

Lightcoral

§

Lightcyan

§

Lightgoldenrodyellow

§

Lightgray

§

Lightgreen

§

Lightgrey

§

Lightpink

§

Lightsalmon

§

Lightseagreen

§

Lightskyblue

§

Lightslategray

§

Lightslategrey

§

Lightsteelblue

§

Lightyellow

§

Lime

§

Limegreen

§

Linen

§

Magenta

§

Maroon

§

Mediumaquamarine

§

Mediumblue

§

Mediumorchid

§

Mediumpurple

§

Mediumseagreen

§

Mediumslateblue

§

Mediumspringgreen

§

Mediumturquoise

§

Mediumvioletred

§

Midnightblue

§

Mintcream

§

Mistyrose

§

Moccasin

§

Navajowhite

§

Navy

§

Oldlace

§

Olive

§

Olivedrab

§

Orange

§

Orangered

§

Orchid

§

Palegoldenrod

§

Palegreen

§

Paleturquoise

§

Palevioletred

§

Papayawhip

§

Peachpuff

§

Peru

§

Pink

§

Plum

§

Powderblue

§

Purple

§

Rebeccapurple

§

Red

§

Rosybrown

§

Royalblue

§

Saddlebrown

§

Salmon

§

Sandybrown

§

Seagreen

§

Seashell

§

Sienna

§

Silver

§

Skyblue

§

Slateblue

§

Slategray

§

Slategrey

§

Snow

§

Springgreen

§

Steelblue

§

Tan

§

Teal

§

Thistle

§

Tomato

§

Turquoise

§

Violet

§

Wheat

§

White

§

Whitesmoke

§

Yellow

§

Yellowgreen

Implementations§

Source§

impl Named

Source

pub fn iter() -> impl Iterator<Item = Named>

Trait Implementations§

Source§

impl Clone for Named

Source§

fn clone(&self) -> Named

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Named

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Named

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Named> for A98Rgb

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Color

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Hex

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Hsl

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Hsv

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Hwb

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Lab

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Lch

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for LinearRgb

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Oklab

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Oklch

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for RgbColor

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for Srgb

Source§

fn from(value: Named) -> Srgb

Converts to this type from the input type.
Source§

impl From<Named> for XyzD50

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl From<Named> for XyzD65

Source§

fn from(value: Named) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Named

Source§

fn eq(&self, other: &Named) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Named

Source§

impl StructuralPartialEq for Named

Auto Trait Implementations§

§

impl Freeze for Named

§

impl RefUnwindSafe for Named

§

impl Send for Named

§

impl Sync for Named

§

impl Unpin for Named

§

impl UnwindSafe for Named

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<C, T> ColorDistance<T> for C
where C: Copy, Lab: From<C> + From<T>,

Source§

fn close_to(&self, other: T, tolerance: f64) -> bool

Compares self to other via delta_e, checking that the result is less than or equal to tolerance. Read more
Source§

fn far_from(&self, other: T, tolerance: f64) -> bool

Compares self to other via delta_e, checking that the result is greater than or equal to tolerance. Read more
Source§

fn delta_e(&self, other: T) -> f64

This uses the CIEDE2000 Delta E formula difference between self and other. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<C, T> WcagColorContrast<T> for C
where C: Copy, T: Copy, Srgb: From<C> + From<T>,

Source§

fn wcag_contrast_ratio(&self, other: T) -> f64

Calculate the contrast ratio between self and other. colors according to WCAG 2.1. Returns a value between 1:1 and 21:1 Read more
Source§

fn wcag_level(&self, other: T) -> WcagLevel

Get the WCAG level for the contrast between self and other. Read more
Source§

fn find_minimum_contrast<Space>( &self, other: T, level: WcagLevel, ) -> Option<Space>
where Self: WcagColorContrast<Space>, Space: ColorMix<Self, T> + From<Self> + From<T> + Copy + PartialEq + Debug, Srgb: From<Space>, Hex: From<Space>,

Find the closest color that meets a specific WCAG level against a background. Read more