Struct avrox_display::gfx::pixels::Grey
source · pub struct Grey(/* private fields */);
Expand description
A pixel which can be a range between black and white
Implementations§
source§impl Grey
impl Grey
pub const BLACK: Self = _
pub const WHITE: Self = _
pub const GREY25PC: Self = _
pub const GREY50PC: Self = _
pub const GREY75PC: Self = _
pub const fn percent(percentage: u16) -> Self
pub const fn eightbit(value: u8) -> Self
pub const fn fourbit(value: u8) -> Self
pub fn get_value(&self) -> u8
pub fn get_value4bit(&self) -> u8
Trait Implementations§
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 Grey
impl PartialEq for Grey
source§impl SolomonPixelConversion for Grey
impl SolomonPixelConversion for Grey
const BITS_PER_PIXEL: u16 = 4u16
fn to_ls_bits(&self) -> u8
fn to_ms_bits(&self) -> u8
impl Copy for Grey
impl Eq for Grey
impl StructuralPartialEq for Grey
Auto Trait Implementations§
impl Freeze for Grey
impl RefUnwindSafe for Grey
impl Send for Grey
impl Sync for Grey
impl Unpin for Grey
impl UnwindSafe for Grey
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 :-).)