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