[−][src]Enum embedded_graphics::pixelcolor::BinaryColor
Binary color.
BinaryColor
is used for displays and images with two possible color states.
The interpretation of active and inactive states can be different for
different types of displays. A BinaryColor::On
might represent a black
pixel on an LCD and a white pixel on an OLED display.
To simplify the conversion from BinaryColor
to RGB and grayscale color
types the default conversions assume that BinaryColor::Off
is black and
BinaryColor::On
is white.
Variants
Off
Inactive pixel.
On
Active pixel.
Methods
impl BinaryColor
[src]
Trait Implementations
impl PixelColor for BinaryColor
[src]
impl PartialEq<BinaryColor> for BinaryColor
[src]
fn eq(&self, other: &BinaryColor) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for BinaryColor
[src]
impl From<RawU1> for BinaryColor
[src]
impl From<BinaryColor> for RawU1
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Rgb555
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Bgr555
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Rgb565
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Bgr565
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Rgb888
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Bgr888
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Gray2
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Gray4
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<BinaryColor> for Gray8
[src]
fn from(color: BinaryColor) -> Self
[src]
impl Copy for BinaryColor
[src]
impl Clone for BinaryColor
[src]
fn clone(&self) -> BinaryColor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,