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