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