Struct avrox_display::gfx::pixels::Monochromatic
source · pub struct Monochromatic(/* private fields */);
Expand description
A pixel which can either be off or on
Implementations§
Trait Implementations§
source§impl Clone for Monochromatic
impl Clone for Monochromatic
source§fn clone(&self) -> Monochromatic
fn clone(&self) -> Monochromatic
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Monochromatic
impl Debug for Monochromatic
source§impl From<Grey> for Monochromatic
impl From<Grey> for Monochromatic
source§impl From<Monochromatic> for Grey
impl From<Monochromatic> for Grey
source§fn from(m: Monochromatic) -> Self
fn from(m: Monochromatic) -> Self
Converts to this type from the input type.
source§impl PartialEq for Monochromatic
impl PartialEq for Monochromatic
source§fn eq(&self, other: &Monochromatic) -> bool
fn eq(&self, other: &Monochromatic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SolomonPixelConversion for Monochromatic
impl SolomonPixelConversion for Monochromatic
const BITS_PER_PIXEL: u16 = 1u16
fn to_ls_bits(&self) -> u8
fn to_ms_bits(&self) -> u8
impl Copy for Monochromatic
impl Eq for Monochromatic
impl StructuralPartialEq for Monochromatic
Auto Trait Implementations§
impl Freeze for Monochromatic
impl RefUnwindSafe for Monochromatic
impl Send for Monochromatic
impl Sync for Monochromatic
impl Unpin for Monochromatic
impl UnwindSafe for Monochromatic
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<X> DisplayAs<X> for Xwhere
X: Clone,
impl<X> DisplayAs<X> for Xwhere
X: Clone,
fn display_value(&self) -> X
source§fn is_mutable(&self) -> bool
fn is_mutable(&self) -> bool
True if this value is mutable (i.e. can change underneath us :-).)