#[repr(u8)]pub enum PpuMode {
HBlank = 0,
VBlank = 1,
OamScan = 2,
Drawing = 3,
}Expand description
Current PPU mode (STAT bits 1-0).
Variants§
HBlank = 0
Mode 0: horizontal blank.
VBlank = 1
Mode 1: vertical blank.
OamScan = 2
Mode 2: OAM scan.
Drawing = 3
Mode 3: drawing pixels.
Implementations§
Trait Implementations§
impl Copy for PpuMode
impl Eq for PpuMode
impl StructuralPartialEq for PpuMode
Auto Trait Implementations§
impl BankSafe for PpuMode
impl Freeze for PpuMode
impl RefUnwindSafe for PpuMode
impl Send for PpuMode
impl Sync for PpuMode
impl Unpin for PpuMode
impl UnsafeUnpin for PpuMode
impl UnwindSafe for PpuMode
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