pub struct Application {
pub name: String,
pub entry_point: Address,
pub modules: Vec<Module>,
pub defines: Vec<Define>,
pub address_lookup: HashMap<String, Address>,
}
Expand description
Application is the root container for the assembler
Fields§
§name: String
Name of the application; only used in comments.
entry_point: Address
Entry point of the application, default = 0x0800
modules: Vec<Module>
Modules of the application
defines: Vec<Define>
Defines of the application
address_lookup: HashMap<String, Address>
Lookup for addresses.
Implementations§
Source§impl Application
impl Application
pub fn address(&self, address_reference: &AddressReference) -> Address
Source§impl Application
impl Application
pub fn lookup_address(&self, address_name: &String) -> AssemblerResult<Address>
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
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 Validator for Application
impl Validator for Application
fn validate(&self) -> AssemblerResult<()>
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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