pub enum VsPpuPalette {
Composite2C02,
Rgb2C03,
Rgb2C04_0001,
Rgb2C04_0002,
Rgb2C04_0003,
Rgb2C04_0004,
Rgb2C05,
}Expand description
Hardware RGB palette selected by a Vs. System / PlayChoice-10 PPU.
This mirrors rustynes_ppu::PpuPalette but lives in rustynes-mappers so the
cartridge layer can surface the resolved palette from the NES 2.0 header
without a dependency on rustynes-ppu (the workspace edge is rustynes-ppu -> rustynes-mappers, never the reverse). rustynes-core maps this to the PPU enum.
Variants§
Composite2C02
Standard 2C02 composite palette (default NES/Famicom; never a Vs. PPU).
Rgb2C03
2C03 RGB PPU.
Rgb2C04_0001
RP2C04-0001 RGB PPU.
Rgb2C04_0002
RP2C04-0002 RGB PPU.
Rgb2C04_0003
RP2C04-0003 RGB PPU.
Rgb2C04_0004
RP2C04-0004 RGB PPU.
Rgb2C05
2C05 RGB PPU (shares the 2C03 master palette; adds register quirks).
Trait Implementations§
Source§impl Clone for VsPpuPalette
impl Clone for VsPpuPalette
Source§fn clone(&self) -> VsPpuPalette
fn clone(&self) -> VsPpuPalette
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VsPpuPalette
Source§impl Debug for VsPpuPalette
impl Debug for VsPpuPalette
Source§impl Default for VsPpuPalette
impl Default for VsPpuPalette
Source§fn default() -> VsPpuPalette
fn default() -> VsPpuPalette
Returns the “default value” for a type. Read more
impl Eq for VsPpuPalette
Source§impl Hash for VsPpuPalette
impl Hash for VsPpuPalette
Source§impl PartialEq for VsPpuPalette
impl PartialEq for VsPpuPalette
impl StructuralPartialEq for VsPpuPalette
Auto Trait Implementations§
impl Freeze for VsPpuPalette
impl RefUnwindSafe for VsPpuPalette
impl Send for VsPpuPalette
impl Sync for VsPpuPalette
impl Unpin for VsPpuPalette
impl UnsafeUnpin for VsPpuPalette
impl UnwindSafe for VsPpuPalette
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