Struct embedded_graphics::pixelcolor::Bgr888 [−][src]
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
Converts a char into a color of type C
.
Converts a color of type C
into a char.
Color used to display None
values when EG_FANCY_PANIC
is enabled. Read more
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Named web colors.
Alice Blue
Antique White
Aquamarine
Bisque
Blanched Almond
Blue Violet
Burly Wood
Cadet Blue
Chartreuse
Chocolate
Cornflower Blue
Cornsilk
Crimson
Dark Blue
Dark Cyan
Dark Goldenrod
Dark Gray
Dark Green
Dark Khaki
Dark Magenta
Dark Olive Green
Dark Orange
Dark Orchid
Dark Red
Dark Salmon
Dark Sea Green
Dark Slate Blue
Dark Slate Gray
Dark Turquoise
Dark Violet
Deep Pink
Deep Sky Blue
Dim Gray
Dodger Blue
Fire Brick
Floral White
Forest Green
Fuchsia
Gainsboro
Ghost White
Goldenrod
Green Yellow
Honeydew
Hot Pink
Indian Red
Indigo
Lavender
Lavender Blush
Lawn Green
Lemon Chiffon
Light Blue
Light Coral
Light Cyan
Light Goldenrod Yellow
Light Gray
Light Green
Light Pink
Light Salmon
Light Sea Green
Light Sky Blue
Light Slate Gray
Light Steel Blue
Light Yellow
Lime Green
Magenta
Maroon
Medium Aquamarine
Medium Blue
Medium Orchid
Medium Purple
Medium Sea Green
Medium Slate Blue
Medium Spring Green
Medium Turquoise
Medium Violet Red
Midnight Blue
Mint Cream
Misty Rose
Moccasin
Navajo White
Old Lace
Olive Drab
Orange
Orange Red
Orchid
Pale Goldenrod
Pale Green
Pale Turquoise
Pale Violet Red
Papaya Whip
Peach Puff
Powder Blue
Purple
Rebeccapurple
Rosy Brown
Royal Blue
Saddle Brown
Salmon
Sandy Brown
Sea Green
Seashell
Sienna
Silver
Sky Blue
Slate Blue
Slate Gray
Spring Green
Steel Blue
Thistle
Tomato
Turquoise
Violet
White Smoke
Yellow
Yellow Green
Auto Trait Implementations
impl RefUnwindSafe for Bgr888
impl UnwindSafe for Bgr888
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
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.
Converts a color into a byte array with little endian byte order.
Converts a color into a byte array with big endian byte order.
Converts a color into a byte array with native byte order.
Casts the value.
pub fn vzip(self) -> V
Casts the value.