pub enum Region {
Ntsc,
Pal,
Multi,
Dendy,
}Expand description
Region governing CPU/PPU dividers, scanline counts, audio rate tables.
Mirrors rustynes_core::Region but lives in rustynes-mappers so the cartridge can
surface region from the NES 2.0 header without depending on rustynes-core.
rustynes-core re-exports a public alias so callers see one type.
Variants§
Ntsc
NTSC (Japan, North America, Australia). 60 Hz, 262 scanlines.
Pal
PAL (Europe). 50 Hz, 312 scanlines.
Multi
Multi-region: cartridge runs on either NTSC or PAL hardware.
Dendy
Dendy (Russian PAL famiclone). 50 Hz, PAL pixel clock + NTSC PPU layout.
Trait Implementations§
impl Copy for Region
impl Eq for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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