pub struct MemoryArgs {
pub read_cpu: Option<String>,
pub read_ppu: Option<String>,
pub dump_oam: bool,
pub dump_nametables: bool,
pub dump_palette: bool,
pub init_cpu: Vec<String>,
pub init_ppu: Vec<String>,
pub init_oam: Vec<String>,
pub init_file: Option<PathBuf>,
}Expand description
Memory operation arguments
Fields§
§read_cpu: Option<String>Read CPU memory range (e.g., 0x0000-0x07FF or 0x6000:0x100)
read_ppu: Option<String>Read PPU memory range (e.g., 0x0000-0x1FFF)
dump_oam: boolDump OAM (sprite) memory
dump_nametables: boolDump nametables
dump_palette: boolDump palette RAM (32 bytes at $3F00-$3F1F)
init_cpu: Vec<String>Initialize CPU memory (ADDR=VALUE or ADDR=V1,V2,…)
init_ppu: Vec<String>Initialize PPU memory (ADDR=VALUE or ADDR=V1,V2,…)
init_oam: Vec<String>Initialize OAM memory (ADDR=VALUE or ADDR=V1,V2,…)
init_file: Option<PathBuf>Load init values from file (JSON/TOML/binary)
Trait Implementations§
Source§impl Args for MemoryArgs
impl Args for MemoryArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for MemoryArgs
impl Clone for MemoryArgs
Source§fn clone(&self) -> MemoryArgs
fn clone(&self) -> MemoryArgs
Returns a duplicate 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 MemoryArgs
impl Debug for MemoryArgs
Source§impl Default for MemoryArgs
impl Default for MemoryArgs
Source§fn default() -> MemoryArgs
fn default() -> MemoryArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for MemoryArgs
impl FromArgMatches for MemoryArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for MemoryArgs
impl RefUnwindSafe for MemoryArgs
impl Send for MemoryArgs
impl Sync for MemoryArgs
impl Unpin for MemoryArgs
impl UnsafeUnpin for MemoryArgs
impl UnwindSafe for MemoryArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().