Struct ds_rom::rom::raw::ProgramOffset
source · #[repr(C)]pub struct ProgramOffset {
pub offset: u32,
pub entry: u32,
pub base_addr: u32,
pub size: u32,
}Expand description
Program offset, used for ARM9, ARM7, ARM9i and ARM7i.
Fields§
§offset: u32ROM offset to start of program.
entry: u32Entrypoint function address.
base_addr: u32Base RAM address.
size: u32Program size in the ROM.
Implementations§
source§impl ProgramOffset
impl ProgramOffset
sourcepub fn display(&self, indent: usize) -> DisplayProgramOffset<'_>
pub fn display(&self, indent: usize) -> DisplayProgramOffset<'_>
Creates a DisplayProgramOffset which implements Display.
Trait Implementations§
source§impl Clone for ProgramOffset
impl Clone for ProgramOffset
source§fn clone(&self) -> ProgramOffset
fn clone(&self) -> ProgramOffset
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 Default for ProgramOffset
impl Default for ProgramOffset
source§fn default() -> ProgramOffset
fn default() -> ProgramOffset
Returns the “default value” for a type. Read more
impl Copy for ProgramOffset
impl Pod for ProgramOffset
Auto Trait Implementations§
impl Freeze for ProgramOffset
impl RefUnwindSafe for ProgramOffset
impl Send for ProgramOffset
impl Sync for ProgramOffset
impl Unpin for ProgramOffset
impl UnwindSafe for ProgramOffset
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)