pub struct GameBoyBuilder { /* private fields */ }
Expand description
Builder struct container for GameBoy
configurations and options.
Implementations§
Source§impl GameBoyBuilder
impl GameBoyBuilder
Sourcepub fn config(self, config: GameBoyConfig) -> Self
pub fn config(self, config: GameBoyConfig) -> Self
Add custom GameBoyConfig
Sourcepub fn boot_rom_file<P: AsRef<Path>>(self, boot_rom_file: P) -> Self
pub fn boot_rom_file<P: AsRef<Path>>(self, boot_rom_file: P) -> Self
Add boot rom file
Sourcepub fn sram_file<P: AsRef<Path>>(self, save_file: P) -> Self
pub fn sram_file<P: AsRef<Path>>(self, save_file: P) -> Self
Add custom sram file, if this is not specified, the sram will be stored in the same directory as the rom file.
Sourcepub fn save_on_shutdown(self, save_on_shutdown: bool) -> Self
pub fn save_on_shutdown(self, save_on_shutdown: bool) -> Self
Should the SRAM be saved on shutdown? (default: true)
Auto Trait Implementations§
impl Freeze for GameBoyBuilder
impl RefUnwindSafe for GameBoyBuilder
impl Send for GameBoyBuilder
impl Sync for GameBoyBuilder
impl Unpin for GameBoyBuilder
impl UnwindSafe for GameBoyBuilder
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