Struct nes_ppu::ColorEmphasis
source · pub struct ColorEmphasis {
pub bits: u8,
}
Expand description
Red, green, and/or blue color emphasis information.
This type is only used to communicate how a PixelBuffer
should modulate
its color output when it receives pixel information.
The the bits
field is a bitset with 3 fields in its least significant bits:
7 6 5 4 3 2 1 0
x x x x x B G R
| | |
| | +- Red color emphasis.
| +--- Blue color emphasis.
+----- Green color emphasis.
The high 5 bits will never be set.
Fields§
§bits: u8
Trait Implementations§
source§impl Clone for ColorEmphasis
impl Clone for ColorEmphasis
source§fn clone(&self) -> ColorEmphasis
fn clone(&self) -> ColorEmphasis
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 ColorEmphasis
impl Debug for ColorEmphasis
impl Copy for ColorEmphasis
Auto Trait Implementations§
impl RefUnwindSafe for ColorEmphasis
impl Send for ColorEmphasis
impl Sync for ColorEmphasis
impl Unpin for ColorEmphasis
impl UnwindSafe for ColorEmphasis
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