ds_rom::rom

Struct BuildContext

source
pub struct BuildContext<'a> {
Show 14 fields pub header_offset: Option<u32>, pub arm9_offset: Option<u32>, pub arm7_offset: Option<u32>, pub fnt_offset: Option<TableOffset>, pub fat_offset: Option<TableOffset>, pub arm9_ovt_offset: Option<TableOffset>, pub arm7_ovt_offset: Option<TableOffset>, pub banner_offset: Option<TableOffset>, pub blowfish_key: Option<&'a BlowfishKey>, pub arm9_autoload_callback: Option<u32>, pub arm7_autoload_callback: Option<u32>, pub arm9_build_info_offset: Option<u32>, pub arm7_build_info_offset: Option<u32>, pub rom_size: Option<u32>,
}
Expand description

Build context, generated during Rom::build and later passed to Header::build to fill in the header.

Fields§

§header_offset: Option<u32>

Header offset.

§arm9_offset: Option<u32>

ARM9 program offset.

§arm7_offset: Option<u32>

ARM7 program offset.

§fnt_offset: Option<TableOffset>

FNT offset.

§fat_offset: Option<TableOffset>

FAT offset.

§arm9_ovt_offset: Option<TableOffset>

ARM9 overlay table offset.

§arm7_ovt_offset: Option<TableOffset>

ARM7 overlay table offset.

§banner_offset: Option<TableOffset>

Banner offset.

§blowfish_key: Option<&'a BlowfishKey>

Blowfish key.

§arm9_autoload_callback: Option<u32>

ARM9 autoload callback.

§arm7_autoload_callback: Option<u32>

ARM7 autoload callback.

§arm9_build_info_offset: Option<u32>

ARM9 build info offset.

§arm7_build_info_offset: Option<u32>

ARM7 build info offset.

§rom_size: Option<u32>

Total ROM size.

Trait Implementations§

source§

impl<'a> Default for BuildContext<'a>

source§

fn default() -> BuildContext<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for BuildContext<'a>

§

impl<'a> RefUnwindSafe for BuildContext<'a>

§

impl<'a> Send for BuildContext<'a>

§

impl<'a> Sync for BuildContext<'a>

§

impl<'a> Unpin for BuildContext<'a>

§

impl<'a> UnwindSafe for BuildContext<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.