pub struct Rgb666(_);
Expand description

Rgb666 color.

Use the methods provided by the RgbColor trait to access individual color channels and predefined color constants.

See the module-level documentation for more information about conversion between this type and raw data.

Implementations§

source§

impl Rgb666where Rgb666: RgbColor,

source

pub const fn new(r: u8, g: u8, b: u8) -> Rgb666

Creates a new Rgb666 color. Too large channel values will be limited by setting the unused most significant bits to zero.

Trait Implementations§

source§

impl Clone for Rgb666

source§

fn clone(&self) -> Rgb666

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 Rgb666

source§

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

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

impl Default for Rgb666

source§

fn default() -> Rgb666

Returns the “default value” for a type. Read more
source§

impl Format for Rgb666

source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
source§

impl From<Bgr555> for Rgb666

source§

fn from(other: Bgr555) -> Rgb666

Converts to this type from the input type.
source§

impl From<Bgr565> for Rgb666

source§

fn from(other: Bgr565) -> Rgb666

Converts to this type from the input type.
source§

impl From<Bgr666> for Rgb666

source§

fn from(other: Bgr666) -> Rgb666

Converts to this type from the input type.
source§

impl From<Bgr888> for Rgb666

source§

fn from(other: Bgr888) -> Rgb666

Converts to this type from the input type.
source§

impl From<BinaryColor> for Rgb666

source§

fn from(color: BinaryColor) -> Rgb666

Converts to this type from the input type.
source§

impl From<Gray2> for Rgb666

source§

fn from(other: Gray2) -> Rgb666

Converts to this type from the input type.
source§

impl From<Gray4> for Rgb666

source§

fn from(other: Gray4) -> Rgb666

Converts to this type from the input type.
source§

impl From<Gray8> for Rgb666

source§

fn from(other: Gray8) -> Rgb666

Converts to this type from the input type.
source§

impl From<RawU24> for Rgb666

source§

fn from(data: RawU24) -> Rgb666

Converts to this type from the input type.
source§

impl From<Rgb555> for Rgb666

source§

fn from(other: Rgb555) -> Rgb666

Converts to this type from the input type.
source§

impl From<Rgb565> for Rgb666

source§

fn from(other: Rgb565) -> Rgb666

Converts to this type from the input type.
source§

impl From<Rgb666> for Bgr555

source§

fn from(other: Rgb666) -> Bgr555

Converts to this type from the input type.
source§

impl From<Rgb666> for Bgr565

source§

fn from(other: Rgb666) -> Bgr565

Converts to this type from the input type.
source§

impl From<Rgb666> for Bgr666

source§

fn from(other: Rgb666) -> Bgr666

Converts to this type from the input type.
source§

impl From<Rgb666> for Bgr888

source§

fn from(other: Rgb666) -> Bgr888

Converts to this type from the input type.
source§

impl From<Rgb666> for BinaryColor

source§

fn from(color: Rgb666) -> BinaryColor

Converts to this type from the input type.
source§

impl From<Rgb666> for Gray2

source§

fn from(other: Rgb666) -> Gray2

Converts to this type from the input type.
source§

impl From<Rgb666> for Gray4

source§

fn from(other: Rgb666) -> Gray4

Converts to this type from the input type.
source§

impl From<Rgb666> for Gray8

source§

fn from(other: Rgb666) -> Gray8

Converts to this type from the input type.
source§

impl From<Rgb666> for RawU24

source§

fn from(color: Rgb666) -> RawU24

Converts to this type from the input type.
source§

impl From<Rgb666> for Rgb555

source§

fn from(other: Rgb666) -> Rgb555

Converts to this type from the input type.
source§

impl From<Rgb666> for Rgb565

source§

fn from(other: Rgb666) -> Rgb565

Converts to this type from the input type.
source§

impl From<Rgb666> for Rgb888

source§

fn from(other: Rgb666) -> Rgb888

Converts to this type from the input type.
source§

impl From<Rgb888> for Rgb666

source§

fn from(other: Rgb888) -> Rgb666

Converts to this type from the input type.
source§

impl Hash for Rgb666

source§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Rgb666

source§

fn cmp(&self, other: &Rgb666) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Rgb666> for Rgb666

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Rgb666> for Rgb666

source§

fn partial_cmp(&self, other: &Rgb666) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PixelColor for Rgb666

§

type Raw = RawU24

Raw data type. Read more
source§

impl RgbColor for Rgb666

source§

fn r(&self) -> u8

Returns the red channel value.
source§

fn g(&self) -> u8

Returns the green channel value.
source§

fn b(&self) -> u8

Returns the blue channel value.
source§

const MAX_R: u8 = 63u8

The maximum value in the red channel.
source§

const MAX_G: u8 = 63u8

The maximum value in the green channel.
source§

const MAX_B: u8 = 63u8

The maximum value in the blue channel.
source§

const BLACK: Rgb666 = Self::new(0, 0, 0)

Black color (R: 0%, G: 0%, B: 0%)
source§

const RED: Rgb666 = Self::new(Self::MAX_R, 0, 0)

Red color (R: 100%, G: 0%, B: 0%)
source§

const GREEN: Rgb666 = Self::new(0, Self::MAX_G, 0)

Green color (R: 0%, G: 100%, B: 0%)
source§

const BLUE: Rgb666 = Self::new(0, 0, Self::MAX_B)

Blue color (R: 0%, G: 0%, B: 100%)
source§

const YELLOW: Rgb666 = Self::new(Self::MAX_R, Self::MAX_G, 0)

Yellow color (R: 100%, G: 100%, B: 0%)
source§

const MAGENTA: Rgb666 = Self::new(Self::MAX_R, 0, Self::MAX_B)

Magenta color (R: 100%, G: 0%, B: 100%)
source§

const CYAN: Rgb666 = Self::new(0, Self::MAX_G, Self::MAX_B)

Cyan color (R: 0%, G: 100%, B: 100%)
source§

const WHITE: Rgb666 = Self::new(Self::MAX_R, Self::MAX_G, Self::MAX_B)

White color (R: 100%, G: 100%, B: 100%)
source§

impl WebColors for Rgb666

Named web colors.

source§

const CSS_ALICE_BLUE: Rgb666 = Self::with_rgb888(240, 248, 255)

Alice Blue

source§

const CSS_ANTIQUE_WHITE: Rgb666 = Self::with_rgb888(250, 235, 215)

Antique White

source§

const CSS_AQUA: Rgb666 = Self::with_rgb888(0, 255, 255)

Aqua

source§

const CSS_AQUAMARINE: Rgb666 = Self::with_rgb888(127, 255, 212)

Aquamarine

source§

const CSS_AZURE: Rgb666 = Self::with_rgb888(240, 255, 255)

Azure

source§

const CSS_BEIGE: Rgb666 = Self::with_rgb888(245, 245, 220)

Beige

source§

const CSS_BISQUE: Rgb666 = Self::with_rgb888(255, 228, 196)

Bisque

source§

const CSS_BLACK: Rgb666 = Self::with_rgb888(0, 0, 0)

Black

source§

const CSS_BLANCHED_ALMOND: Rgb666 = Self::with_rgb888(255, 235, 205)

Blanched Almond

source§

const CSS_BLUE: Rgb666 = Self::with_rgb888(0, 0, 255)

Blue

source§

const CSS_BLUE_VIOLET: Rgb666 = Self::with_rgb888(138, 43, 226)

Blue Violet

source§

const CSS_BROWN: Rgb666 = Self::with_rgb888(165, 42, 42)

Brown

source§

const CSS_BURLY_WOOD: Rgb666 = Self::with_rgb888(222, 184, 135)

Burly Wood

source§

const CSS_CADET_BLUE: Rgb666 = Self::with_rgb888(95, 158, 160)

Cadet Blue

source§

const CSS_CHARTREUSE: Rgb666 = Self::with_rgb888(127, 255, 0)

Chartreuse

source§

const CSS_CHOCOLATE: Rgb666 = Self::with_rgb888(210, 105, 30)

Chocolate

source§

const CSS_CORAL: Rgb666 = Self::with_rgb888(255, 127, 80)

Coral

source§

const CSS_CORNFLOWER_BLUE: Rgb666 = Self::with_rgb888(100, 149, 237)

Cornflower Blue

source§

const CSS_CORNSILK: Rgb666 = Self::with_rgb888(255, 248, 220)

Cornsilk

source§

const CSS_CRIMSON: Rgb666 = Self::with_rgb888(220, 20, 60)

Crimson

source§

const CSS_CYAN: Rgb666 = Self::with_rgb888(0, 255, 255)

Cyan

source§

const CSS_DARK_BLUE: Rgb666 = Self::with_rgb888(0, 0, 139)

Dark Blue

source§

const CSS_DARK_CYAN: Rgb666 = Self::with_rgb888(0, 139, 139)

Dark Cyan

source§

const CSS_DARK_GOLDENROD: Rgb666 = Self::with_rgb888(184, 134, 11)

Dark Goldenrod

source§

const CSS_DARK_GRAY: Rgb666 = Self::with_rgb888(169, 169, 169)

Dark Gray

source§

const CSS_DARK_GREEN: Rgb666 = Self::with_rgb888(0, 100, 0)

Dark Green

source§

const CSS_DARK_KHAKI: Rgb666 = Self::with_rgb888(189, 183, 107)

Dark Khaki

source§

const CSS_DARK_MAGENTA: Rgb666 = Self::with_rgb888(139, 0, 139)

Dark Magenta

source§

const CSS_DARK_OLIVE_GREEN: Rgb666 = Self::with_rgb888(85, 107, 47)

Dark Olive Green

source§

const CSS_DARK_ORANGE: Rgb666 = Self::with_rgb888(255, 140, 0)

Dark Orange

source§

const CSS_DARK_ORCHID: Rgb666 = Self::with_rgb888(153, 50, 204)

Dark Orchid

source§

const CSS_DARK_RED: Rgb666 = Self::with_rgb888(139, 0, 0)

Dark Red

source§

const CSS_DARK_SALMON: Rgb666 = Self::with_rgb888(233, 150, 122)

Dark Salmon

source§

const CSS_DARK_SEA_GREEN: Rgb666 = Self::with_rgb888(143, 188, 143)

Dark Sea Green

source§

const CSS_DARK_SLATE_BLUE: Rgb666 = Self::with_rgb888(72, 61, 139)

Dark Slate Blue

source§

const CSS_DARK_SLATE_GRAY: Rgb666 = Self::with_rgb888(47, 79, 79)

Dark Slate Gray

source§

const CSS_DARK_TURQUOISE: Rgb666 = Self::with_rgb888(0, 206, 209)

Dark Turquoise

source§

const CSS_DARK_VIOLET: Rgb666 = Self::with_rgb888(148, 0, 211)

Dark Violet

source§

const CSS_DEEP_PINK: Rgb666 = Self::with_rgb888(255, 20, 147)

Deep Pink

source§

const CSS_DEEP_SKY_BLUE: Rgb666 = Self::with_rgb888(0, 191, 255)

Deep Sky Blue

source§

const CSS_DIM_GRAY: Rgb666 = Self::with_rgb888(105, 105, 105)

Dim Gray

source§

const CSS_DODGER_BLUE: Rgb666 = Self::with_rgb888(30, 144, 255)

Dodger Blue

source§

const CSS_FIRE_BRICK: Rgb666 = Self::with_rgb888(178, 34, 34)

Fire Brick

source§

const CSS_FLORAL_WHITE: Rgb666 = Self::with_rgb888(255, 250, 240)

Floral White

source§

const CSS_FOREST_GREEN: Rgb666 = Self::with_rgb888(34, 139, 34)

Forest Green

source§

const CSS_FUCHSIA: Rgb666 = Self::with_rgb888(255, 0, 255)

Fuchsia

source§

const CSS_GAINSBORO: Rgb666 = Self::with_rgb888(220, 220, 220)

Gainsboro

source§

const CSS_GHOST_WHITE: Rgb666 = Self::with_rgb888(248, 248, 255)

Ghost White

source§

const CSS_GOLD: Rgb666 = Self::with_rgb888(255, 215, 0)

Gold

source§

const CSS_GOLDENROD: Rgb666 = Self::with_rgb888(218, 165, 32)

Goldenrod

source§

const CSS_GRAY: Rgb666 = Self::with_rgb888(128, 128, 128)

Gray

source§

const CSS_GREEN: Rgb666 = Self::with_rgb888(0, 128, 0)

Green

source§

const CSS_GREEN_YELLOW: Rgb666 = Self::with_rgb888(173, 255, 47)

Green Yellow

source§

const CSS_HONEYDEW: Rgb666 = Self::with_rgb888(240, 255, 240)

Honeydew

source§

const CSS_HOT_PINK: Rgb666 = Self::with_rgb888(255, 105, 180)

Hot Pink

source§

const CSS_INDIAN_RED: Rgb666 = Self::with_rgb888(205, 92, 92)

Indian Red

source§

const CSS_INDIGO: Rgb666 = Self::with_rgb888(75, 0, 130)

Indigo

source§

const CSS_IVORY: Rgb666 = Self::with_rgb888(255, 255, 240)

Ivory

source§

const CSS_KHAKI: Rgb666 = Self::with_rgb888(240, 230, 140)

Khaki

source§

const CSS_LAVENDER: Rgb666 = Self::with_rgb888(230, 230, 250)

Lavender

source§

const CSS_LAVENDER_BLUSH: Rgb666 = Self::with_rgb888(255, 240, 245)

Lavender Blush

source§

const CSS_LAWN_GREEN: Rgb666 = Self::with_rgb888(124, 252, 0)

Lawn Green

source§

const CSS_LEMON_CHIFFON: Rgb666 = Self::with_rgb888(255, 250, 205)

Lemon Chiffon

source§

const CSS_LIGHT_BLUE: Rgb666 = Self::with_rgb888(173, 216, 230)

Light Blue

source§

const CSS_LIGHT_CORAL: Rgb666 = Self::with_rgb888(240, 128, 128)

Light Coral

source§

const CSS_LIGHT_CYAN: Rgb666 = Self::with_rgb888(224, 255, 255)

Light Cyan

source§

const CSS_LIGHT_GOLDENROD_YELLOW: Rgb666 = Self::with_rgb888(250, 250, 210)

Light Goldenrod Yellow

source§

const CSS_LIGHT_GRAY: Rgb666 = Self::with_rgb888(211, 211, 211)

Light Gray

source§

const CSS_LIGHT_GREEN: Rgb666 = Self::with_rgb888(144, 238, 144)

Light Green

source§

const CSS_LIGHT_PINK: Rgb666 = Self::with_rgb888(255, 182, 193)

Light Pink

source§

const CSS_LIGHT_SALMON: Rgb666 = Self::with_rgb888(255, 160, 122)

Light Salmon

source§

const CSS_LIGHT_SEA_GREEN: Rgb666 = Self::with_rgb888(32, 178, 170)

Light Sea Green

source§

const CSS_LIGHT_SKY_BLUE: Rgb666 = Self::with_rgb888(135, 206, 250)

Light Sky Blue

source§

const CSS_LIGHT_SLATE_GRAY: Rgb666 = Self::with_rgb888(119, 136, 153)

Light Slate Gray

source§

const CSS_LIGHT_STEEL_BLUE: Rgb666 = Self::with_rgb888(176, 196, 222)

Light Steel Blue

source§

const CSS_LIGHT_YELLOW: Rgb666 = Self::with_rgb888(255, 255, 224)

Light Yellow

source§

const CSS_LIME: Rgb666 = Self::with_rgb888(0, 255, 0)

Lime

source§

const CSS_LIME_GREEN: Rgb666 = Self::with_rgb888(50, 205, 50)

Lime Green

source§

const CSS_LINEN: Rgb666 = Self::with_rgb888(250, 240, 230)

Linen

source§

const CSS_MAGENTA: Rgb666 = Self::with_rgb888(255, 0, 255)

Magenta

source§

const CSS_MAROON: Rgb666 = Self::with_rgb888(128, 0, 0)

Maroon

source§

const CSS_MEDIUM_AQUAMARINE: Rgb666 = Self::with_rgb888(102, 205, 170)

Medium Aquamarine

source§

const CSS_MEDIUM_BLUE: Rgb666 = Self::with_rgb888(0, 0, 205)

Medium Blue

source§

const CSS_MEDIUM_ORCHID: Rgb666 = Self::with_rgb888(186, 85, 211)

Medium Orchid

source§

const CSS_MEDIUM_PURPLE: Rgb666 = Self::with_rgb888(147, 112, 219)

Medium Purple

source§

const CSS_MEDIUM_SEA_GREEN: Rgb666 = Self::with_rgb888(60, 179, 113)

Medium Sea Green

source§

const CSS_MEDIUM_SLATE_BLUE: Rgb666 = Self::with_rgb888(123, 104, 238)

Medium Slate Blue

source§

const CSS_MEDIUM_SPRING_GREEN: Rgb666 = Self::with_rgb888(0, 250, 154)

Medium Spring Green

source§

const CSS_MEDIUM_TURQUOISE: Rgb666 = Self::with_rgb888(72, 209, 204)

Medium Turquoise

source§

const CSS_MEDIUM_VIOLET_RED: Rgb666 = Self::with_rgb888(199, 21, 133)

Medium Violet Red

source§

const CSS_MIDNIGHT_BLUE: Rgb666 = Self::with_rgb888(25, 25, 112)

Midnight Blue

source§

const CSS_MINT_CREAM: Rgb666 = Self::with_rgb888(245, 255, 250)

Mint Cream

source§

const CSS_MISTY_ROSE: Rgb666 = Self::with_rgb888(255, 228, 225)

Misty Rose

source§

const CSS_MOCCASIN: Rgb666 = Self::with_rgb888(255, 228, 181)

Moccasin

source§

const CSS_NAVAJO_WHITE: Rgb666 = Self::with_rgb888(255, 222, 173)

Navajo White

source§

const CSS_NAVY: Rgb666 = Self::with_rgb888(0, 0, 128)

Navy

source§

const CSS_OLD_LACE: Rgb666 = Self::with_rgb888(253, 245, 230)

Old Lace

source§

const CSS_OLIVE: Rgb666 = Self::with_rgb888(128, 128, 0)

Olive

source§

const CSS_OLIVE_DRAB: Rgb666 = Self::with_rgb888(107, 142, 35)

Olive Drab

source§

const CSS_ORANGE: Rgb666 = Self::with_rgb888(255, 165, 0)

Orange

source§

const CSS_ORANGE_RED: Rgb666 = Self::with_rgb888(255, 69, 0)

Orange Red

source§

const CSS_ORCHID: Rgb666 = Self::with_rgb888(218, 112, 214)

Orchid

source§

const CSS_PALE_GOLDENROD: Rgb666 = Self::with_rgb888(238, 232, 170)

Pale Goldenrod

source§

const CSS_PALE_GREEN: Rgb666 = Self::with_rgb888(152, 251, 152)

Pale Green

source§

const CSS_PALE_TURQUOISE: Rgb666 = Self::with_rgb888(175, 238, 238)

Pale Turquoise

source§

const CSS_PALE_VIOLET_RED: Rgb666 = Self::with_rgb888(219, 112, 147)

Pale Violet Red

source§

const CSS_PAPAYA_WHIP: Rgb666 = Self::with_rgb888(255, 239, 213)

Papaya Whip

source§

const CSS_PEACH_PUFF: Rgb666 = Self::with_rgb888(255, 218, 185)

Peach Puff

source§

const CSS_PERU: Rgb666 = Self::with_rgb888(205, 133, 63)

Peru

source§

const CSS_PINK: Rgb666 = Self::with_rgb888(255, 192, 203)

Pink

source§

const CSS_PLUM: Rgb666 = Self::with_rgb888(221, 160, 221)

Plum

source§

const CSS_POWDER_BLUE: Rgb666 = Self::with_rgb888(176, 224, 230)

Powder Blue

source§

const CSS_PURPLE: Rgb666 = Self::with_rgb888(128, 0, 128)

Purple

source§

const CSS_REBECCAPURPLE: Rgb666 = Self::with_rgb888(102, 51, 153)

Rebeccapurple

source§

const CSS_RED: Rgb666 = Self::with_rgb888(255, 0, 0)

Red

source§

const CSS_ROSY_BROWN: Rgb666 = Self::with_rgb888(188, 143, 143)

Rosy Brown

source§

const CSS_ROYAL_BLUE: Rgb666 = Self::with_rgb888(65, 105, 225)

Royal Blue

source§

const CSS_SADDLE_BROWN: Rgb666 = Self::with_rgb888(139, 69, 19)

Saddle Brown

source§

const CSS_SALMON: Rgb666 = Self::with_rgb888(250, 128, 114)

Salmon

source§

const CSS_SANDY_BROWN: Rgb666 = Self::with_rgb888(244, 164, 96)

Sandy Brown

source§

const CSS_SEA_GREEN: Rgb666 = Self::with_rgb888(46, 139, 87)

Sea Green

source§

const CSS_SEASHELL: Rgb666 = Self::with_rgb888(255, 245, 238)

Seashell

source§

const CSS_SIENNA: Rgb666 = Self::with_rgb888(160, 82, 45)

Sienna

source§

const CSS_SILVER: Rgb666 = Self::with_rgb888(192, 192, 192)

Silver

source§

const CSS_SKY_BLUE: Rgb666 = Self::with_rgb888(135, 206, 235)

Sky Blue

source§

const CSS_SLATE_BLUE: Rgb666 = Self::with_rgb888(106, 90, 205)

Slate Blue

source§

const CSS_SLATE_GRAY: Rgb666 = Self::with_rgb888(112, 128, 144)

Slate Gray

source§

const CSS_SNOW: Rgb666 = Self::with_rgb888(255, 250, 250)

Snow

source§

const CSS_SPRING_GREEN: Rgb666 = Self::with_rgb888(0, 255, 127)

Spring Green

source§

const CSS_STEEL_BLUE: Rgb666 = Self::with_rgb888(70, 130, 180)

Steel Blue

source§

const CSS_TAN: Rgb666 = Self::with_rgb888(210, 180, 140)

Tan

source§

const CSS_TEAL: Rgb666 = Self::with_rgb888(0, 128, 128)

Teal

source§

const CSS_THISTLE: Rgb666 = Self::with_rgb888(216, 191, 216)

Thistle

source§

const CSS_TOMATO: Rgb666 = Self::with_rgb888(255, 99, 71)

Tomato

source§

const CSS_TURQUOISE: Rgb666 = Self::with_rgb888(64, 224, 208)

Turquoise

source§

const CSS_VIOLET: Rgb666 = Self::with_rgb888(238, 130, 238)

Violet

source§

const CSS_WHEAT: Rgb666 = Self::with_rgb888(245, 222, 179)

Wheat

source§

const CSS_WHITE: Rgb666 = Self::with_rgb888(255, 255, 255)

White

source§

const CSS_WHITE_SMOKE: Rgb666 = Self::with_rgb888(245, 245, 245)

White Smoke

source§

const CSS_YELLOW: Rgb666 = Self::with_rgb888(255, 255, 0)

Yellow

source§

const CSS_YELLOW_GREEN: Rgb666 = Self::with_rgb888(154, 205, 50)

Yellow Green

source§

impl Copy for Rgb666

source§

impl Eq for Rgb666

source§

impl StructuralEq for Rgb666

source§

impl StructuralPartialEq for Rgb666

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dstwhere T: Cast<Dst>,

Casts the value.
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Src, Dst> CastFrom<Src> for Dstwhere Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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<C> IntoStorage for Cwhere C: PixelColor, <C as PixelColor>::Raw: From<C>,

§

type Storage = <<C as PixelColor>::Raw as RawData>::Storage

The underlying storage type for the pixel color
source§

fn into_storage(self) -> <C as IntoStorage>::Storage

Convert the PixelColor into its raw storage form
source§

impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<C> ToBytes for Cwhere C: PixelColor + Into<<C as PixelColor>::Raw>,

§

type Bytes = <<C as PixelColor>::Raw as ToBytes>::Bytes

Return type of methods in this trait.
source§

fn to_le_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with little endian byte order.
source§

fn to_be_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with big endian byte order.
source§

fn to_ne_bytes(self) -> <C as ToBytes>::Bytes

Converts a color into a byte array with native byte order.
source§

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

§

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 Twhere U: TryFrom<T>,

§

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<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq<T> + Debug,