pub struct NullVideoBus;Expand description
A no-op VideoBus for unit-testing the PPU in isolation (the one-directional graph is
what makes per-chip testing possible).
Trait Implementations§
Source§impl Debug for NullVideoBus
impl Debug for NullVideoBus
Source§impl Default for NullVideoBus
impl Default for NullVideoBus
Source§fn default() -> NullVideoBus
fn default() -> NullVideoBus
Returns the “default value” for a type. Read more
Source§impl VideoBus for NullVideoBus
impl VideoBus for NullVideoBus
Source§fn cart_read(&mut self, _addr24: u32) -> u8
fn cart_read(&mut self, _addr24: u32) -> u8
Cartridge-mediated read for the PPU (Mode 7 extended-bank fetches on coprocessor
boards route here; plain boards return open bus). Default
0.Source§fn notify_scanline(&mut self)
fn notify_scanline(&mut self)
Notify the board that the PPU is starting a new scanline (for scanline-aligned
coprocessor / IRQ logic). Default no-op.
Source§fn notify_vblank(&mut self)
fn notify_vblank(&mut self)
Notify the board that the PPU has entered vertical blank. Default no-op.
Auto Trait Implementations§
impl Freeze for NullVideoBus
impl RefUnwindSafe for NullVideoBus
impl Send for NullVideoBus
impl Sync for NullVideoBus
impl Unpin for NullVideoBus
impl UnsafeUnpin for NullVideoBus
impl UnwindSafe for NullVideoBus
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