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
Named web colors.
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§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>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> IntoStorage for C
impl<C> IntoStorage for C
Source§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 formSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.