Struct gameboy_rom::GameBoyRom
source · pub struct GameBoyRom<'rom> { /* private fields */ }
Expand description
Top level type for dealing with GameBoy ROMs.
Implementations§
source§impl<'rom> GameBoyRom<'rom>
impl<'rom> GameBoyRom<'rom>
sourcepub fn parse_header(&self) -> Result<RomHeader<'_>, String>
pub fn parse_header(&self) -> Result<RomHeader<'_>, String>
Parse the ROM header and return a high level type containing its data.
sourcepub fn get_instructions_at(&self, address: usize) -> OpcodeStreamer<'_> ⓘ
pub fn get_instructions_at(&self, address: usize) -> OpcodeStreamer<'_> ⓘ
Get an iterator over the instructions starting at the given address.
Trait Implementations§
Auto Trait Implementations§
impl<'rom> RefUnwindSafe for GameBoyRom<'rom>
impl<'rom> Send for GameBoyRom<'rom>
impl<'rom> Sync for GameBoyRom<'rom>
impl<'rom> Unpin for GameBoyRom<'rom>
impl<'rom> UnwindSafe for GameBoyRom<'rom>
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