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