Struct tetanes::nes::NesBuilder
source · pub struct NesBuilder { /* private fields */ }
Implementations§
source§impl NesBuilder
impl NesBuilder
sourcepub fn path<P>(&mut self, path: Option<P>) -> &mut Self
pub fn path<P>(&mut self, path: Option<P>) -> &mut Self
The initial ROM or path to search ROMs for.
sourcepub fn fullscreen(&mut self, val: bool) -> &mut Self
pub fn fullscreen(&mut self, val: bool) -> &mut Self
Enables fullscreen mode.
sourcepub fn ram_state(&mut self, state: Option<RamState>) -> &mut Self
pub fn ram_state(&mut self, state: Option<RamState>) -> &mut Self
Sets the default power-on state for RAM values.
sourcepub fn genie_codes(&mut self, codes: Vec<String>) -> &mut Self
pub fn genie_codes(&mut self, codes: Vec<String>) -> &mut Self
Set the game genie codes to use on startup.
pub fn debug(&mut self, debug: bool) -> &mut Self
Trait Implementations§
source§impl Clone for NesBuilder
impl Clone for NesBuilder
source§fn clone(&self) -> NesBuilder
fn clone(&self) -> NesBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NesBuilder
impl Debug for NesBuilder
Auto Trait Implementations§
impl RefUnwindSafe for NesBuilder
impl Send for NesBuilder
impl Sync for NesBuilder
impl Unpin for NesBuilder
impl UnwindSafe for NesBuilder
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