pub struct Rgb565(_);
Expand description

Rgb565 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 Rgb565where Rgb565: RgbColor,

source

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

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

Trait Implementations§

source§

impl Clone for Rgb565

source§

fn clone(&self) -> Rgb565

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 ColorMapping for Rgb565

source§

fn char_to_color(c: char) -> Self

Converts a char into a color of type C.
source§

fn color_to_char(color: Self) -> char

Converts a color of type C into a char.
source§

const NONE_COLOR: Rgb888 = _

Color used to display None values when EG_FANCY_PANIC is enabled. Read more
source§

impl Debug for Rgb565

source§

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

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

impl Default for Rgb565

source§

fn default() -> Rgb565

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

impl From<Bgr555> for Rgb565

source§

fn from(other: Bgr555) -> Rgb565

Converts to this type from the input type.
source§

impl From<Bgr565> for Rgb565

source§

fn from(other: Bgr565) -> Rgb565

Converts to this type from the input type.
source§

impl From<Bgr666> for Rgb565

source§

fn from(other: Bgr666) -> Rgb565

Converts to this type from the input type.
source§

impl From<Bgr888> for Rgb565

source§

fn from(other: Bgr888) -> Rgb565

Converts to this type from the input type.
source§

impl From<BinaryColor> for Rgb565

source§

fn from(color: BinaryColor) -> Rgb565

Converts to this type from the input type.
source§

impl From<Gray2> for Rgb565

source§

fn from(other: Gray2) -> Rgb565

Converts to this type from the input type.
source§

impl From<Gray4> for Rgb565

source§

fn from(other: Gray4) -> Rgb565

Converts to this type from the input type.
source§

impl From<Gray8> for Rgb565

source§

fn from(other: Gray8) -> Rgb565

Converts to this type from the input type.
source§

impl From<RawU16> for Rgb565

source§

fn from(data: RawU16) -> Rgb565

Converts to this type from the input type.
source§

impl From<Rgb555> for Rgb565

source§

fn from(other: Rgb555) -> Rgb565

Converts to this type from the input type.
source§

impl From<Rgb565> for Bgr555

source§

fn from(other: Rgb565) -> Bgr555

Converts to this type from the input type.
source§

impl From<Rgb565> for Bgr565

source§

fn from(other: Rgb565) -> Bgr565

Converts to this type from the input type.
source§

impl From<Rgb565> for Bgr666

source§

fn from(other: Rgb565) -> Bgr666

Converts to this type from the input type.
source§

impl From<Rgb565> for Bgr888

source§

fn from(other: Rgb565) -> Bgr888

Converts to this type from the input type.
source§

impl From<Rgb565> for BinaryColor

source§

fn from(color: Rgb565) -> BinaryColor

Converts to this type from the input type.
source§

impl From<Rgb565> for Gray2

source§

fn from(other: Rgb565) -> Gray2

Converts to this type from the input type.
source§

impl From<Rgb565> for Gray4

source§

fn from(other: Rgb565) -> Gray4

Converts to this type from the input type.
source§

impl From<Rgb565> for Gray8

source§

fn from(other: Rgb565) -> Gray8

Converts to this type from the input type.
source§

impl From<Rgb565> for RawU16

source§

fn from(color: Rgb565) -> RawU16

Converts to this type from the input type.
source§

impl From<Rgb565> for Rgb555

source§

fn from(other: Rgb565) -> Rgb555

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<Rgb565> for Rgb888

source§

fn from(other: Rgb565) -> Rgb888

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<Rgb888> for Rgb565

source§

fn from(other: Rgb888) -> Rgb565

Converts to this type from the input type.
source§

impl Hash for Rgb565

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 Rgb565

source§

fn cmp(&self, other: &Rgb565) -> 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<Rgb565> for Rgb565

source§

fn eq(&self, other: &Rgb565) -> 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<Rgb565> for Rgb565

source§

fn partial_cmp(&self, other: &Rgb565) -> 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 Rgb565

§

type Raw = RawU16

Raw data type. Read more
source§

impl RgbColor for Rgb565

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 = 31u8

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 = 31u8

The maximum value in the blue channel.
source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl WebColors for Rgb565

Named web colors.

source§

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

Alice Blue

source§

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

Antique White

source§

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

Aqua

source§

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

Aquamarine

source§

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

Azure

source§

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

Beige

source§

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

Bisque

source§

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

Black

source§

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

Blanched Almond

source§

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

Blue

source§

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

Blue Violet

source§

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

Brown

source§

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

Burly Wood

source§

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

Cadet Blue

source§

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

Chartreuse

source§

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

Chocolate

source§

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

Coral

source§

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

Cornflower Blue

source§

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

Cornsilk

source§

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

Crimson

source§

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

Cyan

source§

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

Dark Blue

source§

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

Dark Cyan

source§

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

Dark Goldenrod

source§

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

Dark Gray

source§

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

Dark Green

source§

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

Dark Khaki

source§

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

Dark Magenta

source§

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

Dark Olive Green

source§

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

Dark Orange

source§

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

Dark Orchid

source§

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

Dark Red

source§

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

Dark Salmon

source§

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

Dark Sea Green

source§

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

Dark Slate Blue

source§

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

Dark Slate Gray

source§

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

Dark Turquoise

source§

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

Dark Violet

source§

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

Deep Pink

source§

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

Deep Sky Blue

source§

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

Dim Gray

source§

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

Dodger Blue

source§

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

Fire Brick

source§

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

Floral White

source§

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

Forest Green

source§

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

Fuchsia

source§

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

Gainsboro

source§

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

Ghost White

source§

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

Gold

source§

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

Goldenrod

source§

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

Gray

source§

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

Green

source§

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

Green Yellow

source§

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

Honeydew

source§

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

Hot Pink

source§

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

Indian Red

source§

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

Indigo

source§

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

Ivory

source§

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

Khaki

source§

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

Lavender

source§

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

Lavender Blush

source§

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

Lawn Green

source§

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

Lemon Chiffon

source§

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

Light Blue

source§

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

Light Coral

source§

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

Light Cyan

source§

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

Light Goldenrod Yellow

source§

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

Light Gray

source§

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

Light Green

source§

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

Light Pink

source§

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

Light Salmon

source§

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

Light Sea Green

source§

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

Light Sky Blue

source§

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

Light Slate Gray

source§

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

Light Steel Blue

source§

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

Light Yellow

source§

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

Lime

source§

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

Lime Green

source§

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

Linen

source§

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

Magenta

source§

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

Maroon

source§

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

Medium Aquamarine

source§

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

Medium Blue

source§

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

Medium Orchid

source§

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

Medium Purple

source§

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

Medium Sea Green

source§

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

Medium Slate Blue

source§

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

Medium Spring Green

source§

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

Medium Turquoise

source§

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

Medium Violet Red

source§

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

Midnight Blue

source§

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

Mint Cream

source§

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

Misty Rose

source§

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

Moccasin

source§

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

Navajo White

source§

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

Navy

source§

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

Old Lace

source§

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

Olive

source§

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

Olive Drab

source§

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

Orange

source§

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

Orange Red

source§

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

Orchid

source§

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

Pale Goldenrod

source§

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

Pale Green

source§

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

Pale Turquoise

source§

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

Pale Violet Red

source§

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

Papaya Whip

source§

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

Peach Puff

source§

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

Peru

source§

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

Pink

source§

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

Plum

source§

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

Powder Blue

source§

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

Purple

source§

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

Rebeccapurple

source§

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

Red

source§

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

Rosy Brown

source§

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

Royal Blue

source§

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

Saddle Brown

source§

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

Salmon

source§

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

Sandy Brown

source§

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

Sea Green

source§

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

Seashell

source§

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

Sienna

source§

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

Silver

source§

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

Sky Blue

source§

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

Slate Blue

source§

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

Slate Gray

source§

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

Snow

source§

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

Spring Green

source§

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

Steel Blue

source§

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

Tan

source§

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

Teal

source§

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

Thistle

source§

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

Tomato

source§

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

Turquoise

source§

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

Violet

source§

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

Wheat

source§

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

White

source§

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

White Smoke

source§

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

Yellow

source§

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

Yellow Green

source§

impl Copy for Rgb565

source§

impl Eq for Rgb565

source§

impl StructuralEq for Rgb565

source§

impl StructuralPartialEq for Rgb565

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · 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

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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<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> 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.
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.
const: unstable · 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.
const: unstable · 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.