Struct embedded_graphics::pixelcolor::Rgb888
source · [−]pub struct Rgb888(_);
Expand description
Rgb888 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<Rgb888> for Rgb888
impl ColorMapping<Rgb888> for Rgb888
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: Rgb888) -> char
fn color_to_char(color: Rgb888) -> char
Converts a color of type C
into a char.
sourceimpl From<BinaryColor> for Rgb888
impl From<BinaryColor> for Rgb888
sourcefn from(color: BinaryColor) -> Self
fn from(color: BinaryColor) -> Self
Performs the conversion.
sourceimpl Ord for Rgb888
impl Ord for Rgb888
sourceimpl PartialOrd<Rgb888> for Rgb888
impl PartialOrd<Rgb888> for Rgb888
sourcefn partial_cmp(&self, other: &Rgb888) -> Option<Ordering>
fn partial_cmp(&self, other: &Rgb888) -> 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
impl Copy for Rgb888
impl Eq for Rgb888
impl StructuralEq for Rgb888
impl StructuralPartialEq for Rgb888
Auto Trait Implementations
impl RefUnwindSafe for Rgb888
impl Send for Rgb888
impl Sync for Rgb888
impl Unpin for Rgb888
impl UnwindSafe for Rgb888
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