Struct embedded_graphics::pixelcolor::Bgr565
source · pub struct Bgr565(/* private fields */);
Expand description
Bgr565 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§
Trait Implementations§
source§impl ColorMapping for Bgr565
impl ColorMapping for Bgr565
source§fn char_to_color(c: char) -> Self
fn char_to_color(c: char) -> Self
C
.source§fn color_to_char(color: Self) -> char
fn color_to_char(color: Self) -> char
C
into a char.source§const NONE_COLOR: Rgb888 = _
const NONE_COLOR: Rgb888 = _
source§impl From<Bgr565> for BinaryColor
impl From<Bgr565> for BinaryColor
source§fn from(color: Bgr565) -> BinaryColor
fn from(color: Bgr565) -> BinaryColor
source§impl From<BinaryColor> for Bgr565
impl From<BinaryColor> for Bgr565
source§fn from(color: BinaryColor) -> Bgr565
fn from(color: BinaryColor) -> Bgr565
source§impl Ord for Bgr565
impl Ord for Bgr565
source§impl PartialOrd for Bgr565
impl PartialOrd for Bgr565
source§impl WebColors for Bgr565
impl WebColors for Bgr565
Named web colors.
source§const CSS_ALICE_BLUE: Bgr565 = _
const CSS_ALICE_BLUE: Bgr565 = _
Alice Blue
source§const CSS_ANTIQUE_WHITE: Bgr565 = _
const CSS_ANTIQUE_WHITE: Bgr565 = _
Antique White
source§const CSS_AQUAMARINE: Bgr565 = _
const CSS_AQUAMARINE: Bgr565 = _
Aquamarine
source§const CSS_BISQUE: Bgr565 = _
const CSS_BISQUE: Bgr565 = _
Bisque
source§const CSS_BLANCHED_ALMOND: Bgr565 = _
const CSS_BLANCHED_ALMOND: Bgr565 = _
Blanched Almond
source§const CSS_BLUE_VIOLET: Bgr565 = _
const CSS_BLUE_VIOLET: Bgr565 = _
Blue Violet
source§const CSS_BURLY_WOOD: Bgr565 = _
const CSS_BURLY_WOOD: Bgr565 = _
Burly Wood
source§const CSS_CADET_BLUE: Bgr565 = _
const CSS_CADET_BLUE: Bgr565 = _
Cadet Blue
source§const CSS_CHARTREUSE: Bgr565 = _
const CSS_CHARTREUSE: Bgr565 = _
Chartreuse
source§const CSS_CHOCOLATE: Bgr565 = _
const CSS_CHOCOLATE: Bgr565 = _
Chocolate
source§const CSS_CORNFLOWER_BLUE: Bgr565 = _
const CSS_CORNFLOWER_BLUE: Bgr565 = _
Cornflower Blue
source§const CSS_CORNSILK: Bgr565 = _
const CSS_CORNSILK: Bgr565 = _
Cornsilk
source§const CSS_CRIMSON: Bgr565 = _
const CSS_CRIMSON: Bgr565 = _
Crimson
source§const CSS_DARK_BLUE: Bgr565 = _
const CSS_DARK_BLUE: Bgr565 = _
Dark Blue
source§const CSS_DARK_CYAN: Bgr565 = _
const CSS_DARK_CYAN: Bgr565 = _
Dark Cyan
source§const CSS_DARK_GOLDENROD: Bgr565 = _
const CSS_DARK_GOLDENROD: Bgr565 = _
Dark Goldenrod
source§const CSS_DARK_GRAY: Bgr565 = _
const CSS_DARK_GRAY: Bgr565 = _
Dark Gray
source§const CSS_DARK_GREEN: Bgr565 = _
const CSS_DARK_GREEN: Bgr565 = _
Dark Green
source§const CSS_DARK_KHAKI: Bgr565 = _
const CSS_DARK_KHAKI: Bgr565 = _
Dark Khaki
source§const CSS_DARK_MAGENTA: Bgr565 = _
const CSS_DARK_MAGENTA: Bgr565 = _
Dark Magenta
source§const CSS_DARK_OLIVE_GREEN: Bgr565 = _
const CSS_DARK_OLIVE_GREEN: Bgr565 = _
Dark Olive Green
source§const CSS_DARK_ORANGE: Bgr565 = _
const CSS_DARK_ORANGE: Bgr565 = _
Dark Orange
source§const CSS_DARK_ORCHID: Bgr565 = _
const CSS_DARK_ORCHID: Bgr565 = _
Dark Orchid
source§const CSS_DARK_RED: Bgr565 = _
const CSS_DARK_RED: Bgr565 = _
Dark Red
source§const CSS_DARK_SALMON: Bgr565 = _
const CSS_DARK_SALMON: Bgr565 = _
Dark Salmon
source§const CSS_DARK_SEA_GREEN: Bgr565 = _
const CSS_DARK_SEA_GREEN: Bgr565 = _
Dark Sea Green
source§const CSS_DARK_SLATE_BLUE: Bgr565 = _
const CSS_DARK_SLATE_BLUE: Bgr565 = _
Dark Slate Blue
source§const CSS_DARK_SLATE_GRAY: Bgr565 = _
const CSS_DARK_SLATE_GRAY: Bgr565 = _
Dark Slate Gray
source§const CSS_DARK_TURQUOISE: Bgr565 = _
const CSS_DARK_TURQUOISE: Bgr565 = _
Dark Turquoise
source§const CSS_DARK_VIOLET: Bgr565 = _
const CSS_DARK_VIOLET: Bgr565 = _
Dark Violet
source§const CSS_DEEP_PINK: Bgr565 = _
const CSS_DEEP_PINK: Bgr565 = _
Deep Pink
source§const CSS_DEEP_SKY_BLUE: Bgr565 = _
const CSS_DEEP_SKY_BLUE: Bgr565 = _
Deep Sky Blue
source§const CSS_DIM_GRAY: Bgr565 = _
const CSS_DIM_GRAY: Bgr565 = _
Dim Gray
source§const CSS_DODGER_BLUE: Bgr565 = _
const CSS_DODGER_BLUE: Bgr565 = _
Dodger Blue
source§const CSS_FIRE_BRICK: Bgr565 = _
const CSS_FIRE_BRICK: Bgr565 = _
Fire Brick
source§const CSS_FLORAL_WHITE: Bgr565 = _
const CSS_FLORAL_WHITE: Bgr565 = _
Floral White
source§const CSS_FOREST_GREEN: Bgr565 = _
const CSS_FOREST_GREEN: Bgr565 = _
Forest Green
source§const CSS_FUCHSIA: Bgr565 = _
const CSS_FUCHSIA: Bgr565 = _
Fuchsia
source§const CSS_GAINSBORO: Bgr565 = _
const CSS_GAINSBORO: Bgr565 = _
Gainsboro
source§const CSS_GHOST_WHITE: Bgr565 = _
const CSS_GHOST_WHITE: Bgr565 = _
Ghost White
source§const CSS_GOLDENROD: Bgr565 = _
const CSS_GOLDENROD: Bgr565 = _
Goldenrod
source§const CSS_GREEN_YELLOW: Bgr565 = _
const CSS_GREEN_YELLOW: Bgr565 = _
Green Yellow
source§const CSS_HONEYDEW: Bgr565 = _
const CSS_HONEYDEW: Bgr565 = _
Honeydew
source§const CSS_HOT_PINK: Bgr565 = _
const CSS_HOT_PINK: Bgr565 = _
Hot Pink
source§const CSS_INDIAN_RED: Bgr565 = _
const CSS_INDIAN_RED: Bgr565 = _
Indian Red
source§const CSS_INDIGO: Bgr565 = _
const CSS_INDIGO: Bgr565 = _
Indigo
source§const CSS_LAVENDER: Bgr565 = _
const CSS_LAVENDER: Bgr565 = _
Lavender
source§const CSS_LAVENDER_BLUSH: Bgr565 = _
const CSS_LAVENDER_BLUSH: Bgr565 = _
Lavender Blush
source§const CSS_LAWN_GREEN: Bgr565 = _
const CSS_LAWN_GREEN: Bgr565 = _
Lawn Green
source§const CSS_LEMON_CHIFFON: Bgr565 = _
const CSS_LEMON_CHIFFON: Bgr565 = _
Lemon Chiffon
source§const CSS_LIGHT_BLUE: Bgr565 = _
const CSS_LIGHT_BLUE: Bgr565 = _
Light Blue
source§const CSS_LIGHT_CORAL: Bgr565 = _
const CSS_LIGHT_CORAL: Bgr565 = _
Light Coral
source§const CSS_LIGHT_CYAN: Bgr565 = _
const CSS_LIGHT_CYAN: Bgr565 = _
Light Cyan
source§const CSS_LIGHT_GOLDENROD_YELLOW: Bgr565 = _
const CSS_LIGHT_GOLDENROD_YELLOW: Bgr565 = _
Light Goldenrod Yellow
source§const CSS_LIGHT_GRAY: Bgr565 = _
const CSS_LIGHT_GRAY: Bgr565 = _
Light Gray
source§const CSS_LIGHT_GREEN: Bgr565 = _
const CSS_LIGHT_GREEN: Bgr565 = _
Light Green
source§const CSS_LIGHT_PINK: Bgr565 = _
const CSS_LIGHT_PINK: Bgr565 = _
Light Pink
source§const CSS_LIGHT_SALMON: Bgr565 = _
const CSS_LIGHT_SALMON: Bgr565 = _
Light Salmon
source§const CSS_LIGHT_SEA_GREEN: Bgr565 = _
const CSS_LIGHT_SEA_GREEN: Bgr565 = _
Light Sea Green
source§const CSS_LIGHT_SKY_BLUE: Bgr565 = _
const CSS_LIGHT_SKY_BLUE: Bgr565 = _
Light Sky Blue
source§const CSS_LIGHT_SLATE_GRAY: Bgr565 = _
const CSS_LIGHT_SLATE_GRAY: Bgr565 = _
Light Slate Gray
source§const CSS_LIGHT_STEEL_BLUE: Bgr565 = _
const CSS_LIGHT_STEEL_BLUE: Bgr565 = _
Light Steel Blue
source§const CSS_LIGHT_YELLOW: Bgr565 = _
const CSS_LIGHT_YELLOW: Bgr565 = _
Light Yellow
source§const CSS_LIME_GREEN: Bgr565 = _
const CSS_LIME_GREEN: Bgr565 = _
Lime Green
source§const CSS_MAGENTA: Bgr565 = _
const CSS_MAGENTA: Bgr565 = _
Magenta
source§const CSS_MAROON: Bgr565 = _
const CSS_MAROON: Bgr565 = _
Maroon
source§const CSS_MEDIUM_AQUAMARINE: Bgr565 = _
const CSS_MEDIUM_AQUAMARINE: Bgr565 = _
Medium Aquamarine
source§const CSS_MEDIUM_BLUE: Bgr565 = _
const CSS_MEDIUM_BLUE: Bgr565 = _
Medium Blue
source§const CSS_MEDIUM_ORCHID: Bgr565 = _
const CSS_MEDIUM_ORCHID: Bgr565 = _
Medium Orchid
source§const CSS_MEDIUM_PURPLE: Bgr565 = _
const CSS_MEDIUM_PURPLE: Bgr565 = _
Medium Purple
source§const CSS_MEDIUM_SEA_GREEN: Bgr565 = _
const CSS_MEDIUM_SEA_GREEN: Bgr565 = _
Medium Sea Green
source§const CSS_MEDIUM_SLATE_BLUE: Bgr565 = _
const CSS_MEDIUM_SLATE_BLUE: Bgr565 = _
Medium Slate Blue
source§const CSS_MEDIUM_SPRING_GREEN: Bgr565 = _
const CSS_MEDIUM_SPRING_GREEN: Bgr565 = _
Medium Spring Green
source§const CSS_MEDIUM_TURQUOISE: Bgr565 = _
const CSS_MEDIUM_TURQUOISE: Bgr565 = _
Medium Turquoise
source§const CSS_MEDIUM_VIOLET_RED: Bgr565 = _
const CSS_MEDIUM_VIOLET_RED: Bgr565 = _
Medium Violet Red
source§const CSS_MIDNIGHT_BLUE: Bgr565 = _
const CSS_MIDNIGHT_BLUE: Bgr565 = _
Midnight Blue
source§const CSS_MINT_CREAM: Bgr565 = _
const CSS_MINT_CREAM: Bgr565 = _
Mint Cream
source§const CSS_MISTY_ROSE: Bgr565 = _
const CSS_MISTY_ROSE: Bgr565 = _
Misty Rose
source§const CSS_MOCCASIN: Bgr565 = _
const CSS_MOCCASIN: Bgr565 = _
Moccasin
source§const CSS_NAVAJO_WHITE: Bgr565 = _
const CSS_NAVAJO_WHITE: Bgr565 = _
Navajo White
source§const CSS_OLD_LACE: Bgr565 = _
const CSS_OLD_LACE: Bgr565 = _
Old Lace
source§const CSS_OLIVE_DRAB: Bgr565 = _
const CSS_OLIVE_DRAB: Bgr565 = _
Olive Drab
source§const CSS_ORANGE: Bgr565 = _
const CSS_ORANGE: Bgr565 = _
Orange
source§const CSS_ORANGE_RED: Bgr565 = _
const CSS_ORANGE_RED: Bgr565 = _
Orange Red
source§const CSS_ORCHID: Bgr565 = _
const CSS_ORCHID: Bgr565 = _
Orchid
source§const CSS_PALE_GOLDENROD: Bgr565 = _
const CSS_PALE_GOLDENROD: Bgr565 = _
Pale Goldenrod
source§const CSS_PALE_GREEN: Bgr565 = _
const CSS_PALE_GREEN: Bgr565 = _
Pale Green
source§const CSS_PALE_TURQUOISE: Bgr565 = _
const CSS_PALE_TURQUOISE: Bgr565 = _
Pale Turquoise
source§const CSS_PALE_VIOLET_RED: Bgr565 = _
const CSS_PALE_VIOLET_RED: Bgr565 = _
Pale Violet Red
source§const CSS_PAPAYA_WHIP: Bgr565 = _
const CSS_PAPAYA_WHIP: Bgr565 = _
Papaya Whip
source§const CSS_PEACH_PUFF: Bgr565 = _
const CSS_PEACH_PUFF: Bgr565 = _
Peach Puff
source§const CSS_POWDER_BLUE: Bgr565 = _
const CSS_POWDER_BLUE: Bgr565 = _
Powder Blue
source§const CSS_PURPLE: Bgr565 = _
const CSS_PURPLE: Bgr565 = _
Purple
source§const CSS_REBECCAPURPLE: Bgr565 = _
const CSS_REBECCAPURPLE: Bgr565 = _
Rebeccapurple
source§const CSS_ROSY_BROWN: Bgr565 = _
const CSS_ROSY_BROWN: Bgr565 = _
Rosy Brown
source§const CSS_ROYAL_BLUE: Bgr565 = _
const CSS_ROYAL_BLUE: Bgr565 = _
Royal Blue
source§const CSS_SADDLE_BROWN: Bgr565 = _
const CSS_SADDLE_BROWN: Bgr565 = _
Saddle Brown
source§const CSS_SALMON: Bgr565 = _
const CSS_SALMON: Bgr565 = _
Salmon
source§const CSS_SANDY_BROWN: Bgr565 = _
const CSS_SANDY_BROWN: Bgr565 = _
Sandy Brown
source§const CSS_SEA_GREEN: Bgr565 = _
const CSS_SEA_GREEN: Bgr565 = _
Sea Green
source§const CSS_SEASHELL: Bgr565 = _
const CSS_SEASHELL: Bgr565 = _
Seashell
source§const CSS_SIENNA: Bgr565 = _
const CSS_SIENNA: Bgr565 = _
Sienna
source§const CSS_SILVER: Bgr565 = _
const CSS_SILVER: Bgr565 = _
Silver
source§const CSS_SKY_BLUE: Bgr565 = _
const CSS_SKY_BLUE: Bgr565 = _
Sky Blue
source§const CSS_SLATE_BLUE: Bgr565 = _
const CSS_SLATE_BLUE: Bgr565 = _
Slate Blue
source§const CSS_SLATE_GRAY: Bgr565 = _
const CSS_SLATE_GRAY: Bgr565 = _
Slate Gray
source§const CSS_SPRING_GREEN: Bgr565 = _
const CSS_SPRING_GREEN: Bgr565 = _
Spring Green
source§const CSS_STEEL_BLUE: Bgr565 = _
const CSS_STEEL_BLUE: Bgr565 = _
Steel Blue
source§const CSS_THISTLE: Bgr565 = _
const CSS_THISTLE: Bgr565 = _
Thistle
source§const CSS_TOMATO: Bgr565 = _
const CSS_TOMATO: Bgr565 = _
Tomato
source§const CSS_TURQUOISE: Bgr565 = _
const CSS_TURQUOISE: Bgr565 = _
Turquoise
source§const CSS_VIOLET: Bgr565 = _
const CSS_VIOLET: Bgr565 = _
Violet
source§const CSS_WHITE_SMOKE: Bgr565 = _
const CSS_WHITE_SMOKE: Bgr565 = _
White Smoke
source§const CSS_YELLOW: Bgr565 = _
const CSS_YELLOW: Bgr565 = _
Yellow
source§const CSS_YELLOW_GREEN: Bgr565 = _
const CSS_YELLOW_GREEN: Bgr565 = _
Yellow Green
impl Copy for Bgr565
impl Eq for Bgr565
impl StructuralPartialEq for Bgr565
Auto Trait Implementations§
impl Freeze for Bgr565
impl RefUnwindSafe for Bgr565
impl Send for Bgr565
impl Sync for Bgr565
impl Unpin for Bgr565
impl UnwindSafe for Bgr565
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<C> IntoStorage for C
impl<C> IntoStorage for C
§type Storage = <<C as PixelColor>::Raw as RawData>::Storage
type Storage = <<C as PixelColor>::Raw as RawData>::Storage
source§fn into_storage(self) -> <C as IntoStorage>::Storage
fn into_storage(self) -> <C as IntoStorage>::Storage
PixelColor
into its raw storage form