Struct embedded_graphics::pixelcolor::Bgr888
source · [−]pub struct Bgr888(_);
Expand description
Bgr888 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
sourceimpl ColorMapping for Bgr888
impl ColorMapping for Bgr888
sourcefn char_to_color(c: char) -> Self
fn char_to_color(c: char) -> Self
Converts a char into a color of type C
.
sourcefn color_to_char(color: Self) -> char
fn color_to_char(color: Self) -> char
Converts a color of type C
into a char.
sourceconst NONE_COLOR: Rgb888
const NONE_COLOR: Rgb888
Color used to display None
values when EG_FANCY_PANIC
is enabled. Read more
sourceimpl From<Bgr888> for BinaryColor
impl From<Bgr888> for BinaryColor
sourcepub fn from(color: Bgr888) -> BinaryColor
pub fn from(color: Bgr888) -> BinaryColor
Performs the conversion.
sourceimpl From<BinaryColor> for Bgr888
impl From<BinaryColor> for Bgr888
sourcepub fn from(color: BinaryColor) -> Bgr888
pub fn from(color: BinaryColor) -> Bgr888
Performs the conversion.
sourceimpl Ord for Bgr888
impl Ord for Bgr888
sourceimpl PartialOrd<Bgr888> for Bgr888
impl PartialOrd<Bgr888> for Bgr888
sourcepub fn partial_cmp(&self, other: &Bgr888) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Bgr888) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn le(&self, other: &Rhs) -> bool
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
sourceimpl WebColors for Bgr888
impl WebColors for Bgr888
Named web colors.
sourcepub const CSS_ALICE_BLUE: Bgr888
pub const CSS_ALICE_BLUE: Bgr888
Alice Blue
sourcepub const CSS_ANTIQUE_WHITE: Bgr888
pub const CSS_ANTIQUE_WHITE: Bgr888
Antique White
sourcepub const CSS_AQUAMARINE: Bgr888
pub const CSS_AQUAMARINE: Bgr888
Aquamarine
sourcepub const CSS_BISQUE: Bgr888
pub const CSS_BISQUE: Bgr888
Bisque
sourcepub const CSS_BLANCHED_ALMOND: Bgr888
pub const CSS_BLANCHED_ALMOND: Bgr888
Blanched Almond
sourcepub const CSS_BLUE_VIOLET: Bgr888
pub const CSS_BLUE_VIOLET: Bgr888
Blue Violet
sourcepub const CSS_BURLY_WOOD: Bgr888
pub const CSS_BURLY_WOOD: Bgr888
Burly Wood
sourcepub const CSS_CADET_BLUE: Bgr888
pub const CSS_CADET_BLUE: Bgr888
Cadet Blue
sourcepub const CSS_CHARTREUSE: Bgr888
pub const CSS_CHARTREUSE: Bgr888
Chartreuse
sourcepub const CSS_CHOCOLATE: Bgr888
pub const CSS_CHOCOLATE: Bgr888
Chocolate
sourcepub const CSS_CORNFLOWER_BLUE: Bgr888
pub const CSS_CORNFLOWER_BLUE: Bgr888
Cornflower Blue
sourcepub const CSS_CORNSILK: Bgr888
pub const CSS_CORNSILK: Bgr888
Cornsilk
sourcepub const CSS_CRIMSON: Bgr888
pub const CSS_CRIMSON: Bgr888
Crimson
sourcepub const CSS_DARK_BLUE: Bgr888
pub const CSS_DARK_BLUE: Bgr888
Dark Blue
sourcepub const CSS_DARK_CYAN: Bgr888
pub const CSS_DARK_CYAN: Bgr888
Dark Cyan
sourcepub const CSS_DARK_GOLDENROD: Bgr888
pub const CSS_DARK_GOLDENROD: Bgr888
Dark Goldenrod
sourcepub const CSS_DARK_GRAY: Bgr888
pub const CSS_DARK_GRAY: Bgr888
Dark Gray
sourcepub const CSS_DARK_GREEN: Bgr888
pub const CSS_DARK_GREEN: Bgr888
Dark Green
sourcepub const CSS_DARK_KHAKI: Bgr888
pub const CSS_DARK_KHAKI: Bgr888
Dark Khaki
sourcepub const CSS_DARK_MAGENTA: Bgr888
pub const CSS_DARK_MAGENTA: Bgr888
Dark Magenta
sourcepub const CSS_DARK_OLIVE_GREEN: Bgr888
pub const CSS_DARK_OLIVE_GREEN: Bgr888
Dark Olive Green
sourcepub const CSS_DARK_ORANGE: Bgr888
pub const CSS_DARK_ORANGE: Bgr888
Dark Orange
sourcepub const CSS_DARK_ORCHID: Bgr888
pub const CSS_DARK_ORCHID: Bgr888
Dark Orchid
sourcepub const CSS_DARK_RED: Bgr888
pub const CSS_DARK_RED: Bgr888
Dark Red
sourcepub const CSS_DARK_SALMON: Bgr888
pub const CSS_DARK_SALMON: Bgr888
Dark Salmon
sourcepub const CSS_DARK_SEA_GREEN: Bgr888
pub const CSS_DARK_SEA_GREEN: Bgr888
Dark Sea Green
sourcepub const CSS_DARK_SLATE_BLUE: Bgr888
pub const CSS_DARK_SLATE_BLUE: Bgr888
Dark Slate Blue
sourcepub const CSS_DARK_SLATE_GRAY: Bgr888
pub const CSS_DARK_SLATE_GRAY: Bgr888
Dark Slate Gray
sourcepub const CSS_DARK_TURQUOISE: Bgr888
pub const CSS_DARK_TURQUOISE: Bgr888
Dark Turquoise
sourcepub const CSS_DARK_VIOLET: Bgr888
pub const CSS_DARK_VIOLET: Bgr888
Dark Violet
sourcepub const CSS_DEEP_PINK: Bgr888
pub const CSS_DEEP_PINK: Bgr888
Deep Pink
sourcepub const CSS_DEEP_SKY_BLUE: Bgr888
pub const CSS_DEEP_SKY_BLUE: Bgr888
Deep Sky Blue
sourcepub const CSS_DIM_GRAY: Bgr888
pub const CSS_DIM_GRAY: Bgr888
Dim Gray
sourcepub const CSS_DODGER_BLUE: Bgr888
pub const CSS_DODGER_BLUE: Bgr888
Dodger Blue
sourcepub const CSS_FIRE_BRICK: Bgr888
pub const CSS_FIRE_BRICK: Bgr888
Fire Brick
sourcepub const CSS_FLORAL_WHITE: Bgr888
pub const CSS_FLORAL_WHITE: Bgr888
Floral White
sourcepub const CSS_FOREST_GREEN: Bgr888
pub const CSS_FOREST_GREEN: Bgr888
Forest Green
sourcepub const CSS_FUCHSIA: Bgr888
pub const CSS_FUCHSIA: Bgr888
Fuchsia
sourcepub const CSS_GAINSBORO: Bgr888
pub const CSS_GAINSBORO: Bgr888
Gainsboro
sourcepub const CSS_GHOST_WHITE: Bgr888
pub const CSS_GHOST_WHITE: Bgr888
Ghost White
sourcepub const CSS_GOLDENROD: Bgr888
pub const CSS_GOLDENROD: Bgr888
Goldenrod
sourcepub const CSS_GREEN_YELLOW: Bgr888
pub const CSS_GREEN_YELLOW: Bgr888
Green Yellow
sourcepub const CSS_HONEYDEW: Bgr888
pub const CSS_HONEYDEW: Bgr888
Honeydew
sourcepub const CSS_HOT_PINK: Bgr888
pub const CSS_HOT_PINK: Bgr888
Hot Pink
sourcepub const CSS_INDIAN_RED: Bgr888
pub const CSS_INDIAN_RED: Bgr888
Indian Red
sourcepub const CSS_INDIGO: Bgr888
pub const CSS_INDIGO: Bgr888
Indigo
sourcepub const CSS_LAVENDER: Bgr888
pub const CSS_LAVENDER: Bgr888
Lavender
sourcepub const CSS_LAVENDER_BLUSH: Bgr888
pub const CSS_LAVENDER_BLUSH: Bgr888
Lavender Blush
sourcepub const CSS_LAWN_GREEN: Bgr888
pub const CSS_LAWN_GREEN: Bgr888
Lawn Green
sourcepub const CSS_LEMON_CHIFFON: Bgr888
pub const CSS_LEMON_CHIFFON: Bgr888
Lemon Chiffon
sourcepub const CSS_LIGHT_BLUE: Bgr888
pub const CSS_LIGHT_BLUE: Bgr888
Light Blue
sourcepub const CSS_LIGHT_CORAL: Bgr888
pub const CSS_LIGHT_CORAL: Bgr888
Light Coral
sourcepub const CSS_LIGHT_CYAN: Bgr888
pub const CSS_LIGHT_CYAN: Bgr888
Light Cyan
sourcepub const CSS_LIGHT_GOLDENROD_YELLOW: Bgr888
pub const CSS_LIGHT_GOLDENROD_YELLOW: Bgr888
Light Goldenrod Yellow
sourcepub const CSS_LIGHT_GRAY: Bgr888
pub const CSS_LIGHT_GRAY: Bgr888
Light Gray
sourcepub const CSS_LIGHT_GREEN: Bgr888
pub const CSS_LIGHT_GREEN: Bgr888
Light Green
sourcepub const CSS_LIGHT_PINK: Bgr888
pub const CSS_LIGHT_PINK: Bgr888
Light Pink
sourcepub const CSS_LIGHT_SALMON: Bgr888
pub const CSS_LIGHT_SALMON: Bgr888
Light Salmon
sourcepub const CSS_LIGHT_SEA_GREEN: Bgr888
pub const CSS_LIGHT_SEA_GREEN: Bgr888
Light Sea Green
sourcepub const CSS_LIGHT_SKY_BLUE: Bgr888
pub const CSS_LIGHT_SKY_BLUE: Bgr888
Light Sky Blue
sourcepub const CSS_LIGHT_SLATE_GRAY: Bgr888
pub const CSS_LIGHT_SLATE_GRAY: Bgr888
Light Slate Gray
sourcepub const CSS_LIGHT_STEEL_BLUE: Bgr888
pub const CSS_LIGHT_STEEL_BLUE: Bgr888
Light Steel Blue
sourcepub const CSS_LIGHT_YELLOW: Bgr888
pub const CSS_LIGHT_YELLOW: Bgr888
Light Yellow
sourcepub const CSS_LIME_GREEN: Bgr888
pub const CSS_LIME_GREEN: Bgr888
Lime Green
sourcepub const CSS_MAGENTA: Bgr888
pub const CSS_MAGENTA: Bgr888
Magenta
sourcepub const CSS_MAROON: Bgr888
pub const CSS_MAROON: Bgr888
Maroon
sourcepub const CSS_MEDIUM_AQUAMARINE: Bgr888
pub const CSS_MEDIUM_AQUAMARINE: Bgr888
Medium Aquamarine
sourcepub const CSS_MEDIUM_BLUE: Bgr888
pub const CSS_MEDIUM_BLUE: Bgr888
Medium Blue
sourcepub const CSS_MEDIUM_ORCHID: Bgr888
pub const CSS_MEDIUM_ORCHID: Bgr888
Medium Orchid
sourcepub const CSS_MEDIUM_PURPLE: Bgr888
pub const CSS_MEDIUM_PURPLE: Bgr888
Medium Purple
sourcepub const CSS_MEDIUM_SEA_GREEN: Bgr888
pub const CSS_MEDIUM_SEA_GREEN: Bgr888
Medium Sea Green
sourcepub const CSS_MEDIUM_SLATE_BLUE: Bgr888
pub const CSS_MEDIUM_SLATE_BLUE: Bgr888
Medium Slate Blue
sourcepub const CSS_MEDIUM_SPRING_GREEN: Bgr888
pub const CSS_MEDIUM_SPRING_GREEN: Bgr888
Medium Spring Green
sourcepub const CSS_MEDIUM_TURQUOISE: Bgr888
pub const CSS_MEDIUM_TURQUOISE: Bgr888
Medium Turquoise
sourcepub const CSS_MEDIUM_VIOLET_RED: Bgr888
pub const CSS_MEDIUM_VIOLET_RED: Bgr888
Medium Violet Red
sourcepub const CSS_MIDNIGHT_BLUE: Bgr888
pub const CSS_MIDNIGHT_BLUE: Bgr888
Midnight Blue
sourcepub const CSS_MINT_CREAM: Bgr888
pub const CSS_MINT_CREAM: Bgr888
Mint Cream
sourcepub const CSS_MISTY_ROSE: Bgr888
pub const CSS_MISTY_ROSE: Bgr888
Misty Rose
sourcepub const CSS_MOCCASIN: Bgr888
pub const CSS_MOCCASIN: Bgr888
Moccasin
sourcepub const CSS_NAVAJO_WHITE: Bgr888
pub const CSS_NAVAJO_WHITE: Bgr888
Navajo White
sourcepub const CSS_OLD_LACE: Bgr888
pub const CSS_OLD_LACE: Bgr888
Old Lace
sourcepub const CSS_OLIVE_DRAB: Bgr888
pub const CSS_OLIVE_DRAB: Bgr888
Olive Drab
sourcepub const CSS_ORANGE: Bgr888
pub const CSS_ORANGE: Bgr888
Orange
sourcepub const CSS_ORANGE_RED: Bgr888
pub const CSS_ORANGE_RED: Bgr888
Orange Red
sourcepub const CSS_ORCHID: Bgr888
pub const CSS_ORCHID: Bgr888
Orchid
sourcepub const CSS_PALE_GOLDENROD: Bgr888
pub const CSS_PALE_GOLDENROD: Bgr888
Pale Goldenrod
sourcepub const CSS_PALE_GREEN: Bgr888
pub const CSS_PALE_GREEN: Bgr888
Pale Green
sourcepub const CSS_PALE_TURQUOISE: Bgr888
pub const CSS_PALE_TURQUOISE: Bgr888
Pale Turquoise
sourcepub const CSS_PALE_VIOLET_RED: Bgr888
pub const CSS_PALE_VIOLET_RED: Bgr888
Pale Violet Red
sourcepub const CSS_PAPAYA_WHIP: Bgr888
pub const CSS_PAPAYA_WHIP: Bgr888
Papaya Whip
sourcepub const CSS_PEACH_PUFF: Bgr888
pub const CSS_PEACH_PUFF: Bgr888
Peach Puff
sourcepub const CSS_POWDER_BLUE: Bgr888
pub const CSS_POWDER_BLUE: Bgr888
Powder Blue
sourcepub const CSS_PURPLE: Bgr888
pub const CSS_PURPLE: Bgr888
Purple
sourcepub const CSS_REBECCAPURPLE: Bgr888
pub const CSS_REBECCAPURPLE: Bgr888
Rebeccapurple
sourcepub const CSS_ROSY_BROWN: Bgr888
pub const CSS_ROSY_BROWN: Bgr888
Rosy Brown
sourcepub const CSS_ROYAL_BLUE: Bgr888
pub const CSS_ROYAL_BLUE: Bgr888
Royal Blue
sourcepub const CSS_SADDLE_BROWN: Bgr888
pub const CSS_SADDLE_BROWN: Bgr888
Saddle Brown
sourcepub const CSS_SALMON: Bgr888
pub const CSS_SALMON: Bgr888
Salmon
sourcepub const CSS_SANDY_BROWN: Bgr888
pub const CSS_SANDY_BROWN: Bgr888
Sandy Brown
sourcepub const CSS_SEA_GREEN: Bgr888
pub const CSS_SEA_GREEN: Bgr888
Sea Green
sourcepub const CSS_SEASHELL: Bgr888
pub const CSS_SEASHELL: Bgr888
Seashell
sourcepub const CSS_SIENNA: Bgr888
pub const CSS_SIENNA: Bgr888
Sienna
sourcepub const CSS_SILVER: Bgr888
pub const CSS_SILVER: Bgr888
Silver
sourcepub const CSS_SKY_BLUE: Bgr888
pub const CSS_SKY_BLUE: Bgr888
Sky Blue
sourcepub const CSS_SLATE_BLUE: Bgr888
pub const CSS_SLATE_BLUE: Bgr888
Slate Blue
sourcepub const CSS_SLATE_GRAY: Bgr888
pub const CSS_SLATE_GRAY: Bgr888
Slate Gray
sourcepub const CSS_SPRING_GREEN: Bgr888
pub const CSS_SPRING_GREEN: Bgr888
Spring Green
sourcepub const CSS_STEEL_BLUE: Bgr888
pub const CSS_STEEL_BLUE: Bgr888
Steel Blue
sourcepub const CSS_THISTLE: Bgr888
pub const CSS_THISTLE: Bgr888
Thistle
sourcepub const CSS_TOMATO: Bgr888
pub const CSS_TOMATO: Bgr888
Tomato
sourcepub const CSS_TURQUOISE: Bgr888
pub const CSS_TURQUOISE: Bgr888
Turquoise
sourcepub const CSS_VIOLET: Bgr888
pub const CSS_VIOLET: Bgr888
Violet
sourcepub const CSS_WHITE_SMOKE: Bgr888
pub const CSS_WHITE_SMOKE: Bgr888
White Smoke
sourcepub const CSS_YELLOW: Bgr888
pub const CSS_YELLOW: Bgr888
Yellow
sourcepub const CSS_YELLOW_GREEN: Bgr888
pub const CSS_YELLOW_GREEN: Bgr888
Yellow Green
impl Copy for Bgr888
impl Eq for Bgr888
impl StructuralEq for Bgr888
impl StructuralPartialEq for Bgr888
Auto Trait Implementations
impl RefUnwindSafe for Bgr888
impl Send for Bgr888
impl Sync for Bgr888
impl Unpin for Bgr888
impl UnwindSafe for Bgr888
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcepub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcepub fn checked_cast_from(src: Src) -> Option<Dst>
pub fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcepub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcepub fn overflowing_cast_from(src: Src) -> (Dst, bool)
pub fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcepub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcepub fn saturating_cast_from(src: Src) -> Dst
pub fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<C> ToBytes for C where
C: PixelColor + Into<<C as PixelColor>::Raw>,
impl<C> ToBytes for C where
C: PixelColor + Into<<C as PixelColor>::Raw>,
type Bytes = <<C as PixelColor>::Raw as ToBytes>::Bytes
type Bytes = <<C as PixelColor>::Raw as ToBytes>::Bytes
Return type of methods in this trait.
sourcepub fn to_le_bytes(self) -> <C as ToBytes>::Bytes
pub fn to_le_bytes(self) -> <C as ToBytes>::Bytes
Converts a color into a byte array with little endian byte order.
sourcepub fn to_be_bytes(self) -> <C as ToBytes>::Bytes
pub fn to_be_bytes(self) -> <C as ToBytes>::Bytes
Converts a color into a byte array with big endian byte order.
sourcepub fn to_ne_bytes(self) -> <C as ToBytes>::Bytes
pub fn to_ne_bytes(self) -> <C as ToBytes>::Bytes
Converts a color into a byte array with native byte order.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcepub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcepub fn unwrapped_cast_from(src: Src) -> Dst
pub fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcepub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcepub fn wrapping_cast_from(src: Src) -> Dst
pub fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.