Struct embedded_graphics::pixelcolor::Gray4
source · pub struct Gray4(/* private fields */);
Expand description
4 bit grayscale color.
Implementations§
Trait Implementations§
source§impl From<BinaryColor> for Gray4
impl From<BinaryColor> for Gray4
source§fn from(color: BinaryColor) -> Self
fn from(color: BinaryColor) -> Self
Converts to this type from the input type.
source§impl Ord for Gray4
impl Ord for Gray4
source§impl PartialEq for Gray4
impl PartialEq for Gray4
source§impl PartialOrd for Gray4
impl PartialOrd for Gray4
1.0.0 · source§fn 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 moreimpl Copy for Gray4
impl Eq for Gray4
impl StructuralPartialEq for Gray4
Auto Trait Implementations§
impl RefUnwindSafe for Gray4
impl Send for Gray4
impl Sync for Gray4
impl Unpin for Gray4
impl UnwindSafe for Gray4
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
Mutably borrows from an owned value. Read more
source§impl<C> IntoStorage for C
impl<C> IntoStorage for C
§type Storage = <<C as PixelColor>::Raw as RawData>::Storage
type Storage = <<C as PixelColor>::Raw as RawData>::Storage
The underlying storage type for the pixel color
source§fn into_storage(self) -> <C as IntoStorage>::Storage
fn into_storage(self) -> <C as IntoStorage>::Storage
Convert the
PixelColor
into its raw storage form