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