pub struct Bgr555(_);
Expand description

Bgr555 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 Bgr555where Bgr555: RgbColor,

source

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

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

Trait Implementations§

source§

impl Clone for Bgr555

source§

fn clone(&self) -> Bgr555

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 Bgr555

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 Bgr555

source§

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

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

impl Default for Bgr555

source§

fn default() -> Bgr555

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

impl From<Bgr555> for Bgr565

source§

fn from(other: Bgr555) -> Bgr565

Converts to this type from the input type.
source§

impl From<Bgr555> for Bgr666

source§

fn from(other: Bgr555) -> Bgr666

Converts to this type from the input type.
source§

impl From<Bgr555> for Bgr888

source§

fn from(other: Bgr555) -> Bgr888

Converts to this type from the input type.
source§

impl From<Bgr555> for BinaryColor

source§

fn from(color: Bgr555) -> BinaryColor

Converts to this type from the input type.
source§

impl From<Bgr555> for Gray2

source§

fn from(other: Bgr555) -> Gray2

Converts to this type from the input type.
source§

impl From<Bgr555> for Gray4

source§

fn from(other: Bgr555) -> Gray4

Converts to this type from the input type.
source§

impl From<Bgr555> for Gray8

source§

fn from(other: Bgr555) -> Gray8

Converts to this type from the input type.
source§

impl From<Bgr555> for RawU16

source§

fn from(color: Bgr555) -> RawU16

Converts to this type from the input type.
source§

impl From<Bgr555> for Rgb555

source§

fn from(other: Bgr555) -> Rgb555

Converts to this type from the input type.
source§

impl From<Bgr555> for Rgb565

source§

fn from(other: Bgr555) -> Rgb565

Converts to this type from the input type.
source§

impl From<Bgr555> for Rgb666

source§

fn from(other: Bgr555) -> Rgb666

Converts to this type from the input type.
source§

impl From<Bgr555> for Rgb888

source§

fn from(other: Bgr555) -> Rgb888

Converts to this type from the input type.
source§

impl From<Bgr565> for Bgr555

source§

fn from(other: Bgr565) -> Bgr555

Converts to this type from the input type.
source§

impl From<Bgr666> for Bgr555

source§

fn from(other: Bgr666) -> Bgr555

Converts to this type from the input type.
source§

impl From<Bgr888> for Bgr555

source§

fn from(other: Bgr888) -> Bgr555

Converts to this type from the input type.
source§

impl From<BinaryColor> for Bgr555

source§

fn from(color: BinaryColor) -> Bgr555

Converts to this type from the input type.
source§

impl From<Gray2> for Bgr555

source§

fn from(other: Gray2) -> Bgr555

Converts to this type from the input type.
source§

impl From<Gray4> for Bgr555

source§

fn from(other: Gray4) -> Bgr555

Converts to this type from the input type.
source§

impl From<Gray8> for Bgr555

source§

fn from(other: Gray8) -> Bgr555

Converts to this type from the input type.
source§

impl From<RawU16> for Bgr555

source§

fn from(data: RawU16) -> Bgr555

Converts to this type from the input type.
source§

impl From<Rgb555> for Bgr555

source§

fn from(other: Rgb555) -> Bgr555

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<Rgb666> for Bgr555

source§

fn from(other: Rgb666) -> Bgr555

Converts to this type from the input type.
source§

impl From<Rgb888> for Bgr555

source§

fn from(other: Rgb888) -> Bgr555

Converts to this type from the input type.
source§

impl Hash for Bgr555

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 Bgr555

source§

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

source§

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

source§

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

§

type Raw = RawU16

Raw data type. Read more
source§

impl RgbColor for Bgr555

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

The maximum value in the green channel.
source§

const MAX_B: u8 = 31u8

The maximum value in the blue channel.
source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl WebColors for Bgr555

Named web colors.

source§

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

Alice Blue

source§

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

Antique White

source§

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

Aqua

source§

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

Aquamarine

source§

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

Azure

source§

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

Beige

source§

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

Bisque

source§

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

Black

source§

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

Blanched Almond

source§

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

Blue

source§

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

Blue Violet

source§

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

Brown

source§

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

Burly Wood

source§

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

Cadet Blue

source§

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

Chartreuse

source§

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

Chocolate

source§

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

Coral

source§

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

Cornflower Blue

source§

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

Cornsilk

source§

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

Crimson

source§

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

Cyan

source§

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

Dark Blue

source§

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

Dark Cyan

source§

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

Dark Goldenrod

source§

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

Dark Gray

source§

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

Dark Green

source§

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

Dark Khaki

source§

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

Dark Magenta

source§

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

Dark Olive Green

source§

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

Dark Orange

source§

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

Dark Orchid

source§

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

Dark Red

source§

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

Dark Salmon

source§

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

Dark Sea Green

source§

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

Dark Slate Blue

source§

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

Dark Slate Gray

source§

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

Dark Turquoise

source§

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

Dark Violet

source§

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

Deep Pink

source§

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

Deep Sky Blue

source§

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

Dim Gray

source§

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

Dodger Blue

source§

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

Fire Brick

source§

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

Floral White

source§

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

Forest Green

source§

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

Fuchsia

source§

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

Gainsboro

source§

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

Ghost White

source§

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

Gold

source§

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

Goldenrod

source§

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

Gray

source§

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

Green

source§

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

Green Yellow

source§

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

Honeydew

source§

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

Hot Pink

source§

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

Indian Red

source§

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

Indigo

source§

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

Ivory

source§

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

Khaki

source§

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

Lavender

source§

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

Lavender Blush

source§

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

Lawn Green

source§

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

Lemon Chiffon

source§

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

Light Blue

source§

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

Light Coral

source§

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

Light Cyan

source§

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

Light Goldenrod Yellow

source§

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

Light Gray

source§

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

Light Green

source§

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

Light Pink

source§

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

Light Salmon

source§

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

Light Sea Green

source§

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

Light Sky Blue

source§

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

Light Slate Gray

source§

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

Light Steel Blue

source§

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

Light Yellow

source§

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

Lime

source§

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

Lime Green

source§

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

Linen

source§

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

Magenta

source§

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

Maroon

source§

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

Medium Aquamarine

source§

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

Medium Blue

source§

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

Medium Orchid

source§

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

Medium Purple

source§

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

Medium Sea Green

source§

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

Medium Slate Blue

source§

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

Medium Spring Green

source§

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

Medium Turquoise

source§

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

Medium Violet Red

source§

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

Midnight Blue

source§

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

Mint Cream

source§

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

Misty Rose

source§

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

Moccasin

source§

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

Navajo White

source§

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

Navy

source§

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

Old Lace

source§

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

Olive

source§

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

Olive Drab

source§

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

Orange

source§

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

Orange Red

source§

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

Orchid

source§

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

Pale Goldenrod

source§

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

Pale Green

source§

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

Pale Turquoise

source§

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

Pale Violet Red

source§

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

Papaya Whip

source§

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

Peach Puff

source§

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

Peru

source§

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

Pink

source§

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

Plum

source§

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

Powder Blue

source§

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

Purple

source§

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

Rebeccapurple

source§

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

Red

source§

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

Rosy Brown

source§

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

Royal Blue

source§

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

Saddle Brown

source§

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

Salmon

source§

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

Sandy Brown

source§

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

Sea Green

source§

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

Seashell

source§

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

Sienna

source§

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

Silver

source§

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

Sky Blue

source§

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

Slate Blue

source§

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

Slate Gray

source§

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

Snow

source§

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

Spring Green

source§

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

Steel Blue

source§

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

Tan

source§

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

Teal

source§

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

Thistle

source§

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

Tomato

source§

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

Turquoise

source§

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

Violet

source§

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

Wheat

source§

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

White

source§

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

White Smoke

source§

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

Yellow

source§

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

Yellow Green

source§

impl Copy for Bgr555

source§

impl Eq for Bgr555

source§

impl StructuralEq for Bgr555

source§

impl StructuralPartialEq for Bgr555

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.