#[non_exhaustive]pub struct Symbol {
pub name: String,
pub vram: u64,
pub size: u64,
pub vrom: Option<u64>,
pub align: Option<u64>,
pub nonmatching_sym_exists: bool,
pub inferred_static: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§vram: u64§size: u64§vrom: Option<u64>§align: Option<u64>§nonmatching_sym_exists: booltrue if a symbol with the same name, but with a .NON_MATCHING
suffix is found in this symbol’s section. false otherwise.
Note the symbol with the actual .NON_MATCHING will have this member
set to false.
inferred_static: boolThis symbol was not originally present on the mapfile, but instead it was added during parsing because it was inferred this symbol must exist due to mismatches on the addresses or sizes of other symbols in this section or mismatches in the section itself.
Implementations§
Source§impl Symbol
impl Symbol
pub fn new( name: String, vram: u64, size: u64, vrom: Option<u64>, align: Option<u64>, ) -> Self
pub fn new_default(name: String, vram: u64) -> Self
pub fn new_static(name: String, vram: u64, size: u64, vrom: Option<u64>) -> Self
pub fn get_vram_str(&self) -> String
pub fn get_size_str(&self) -> String
pub fn get_vrom_str(&self) -> String
pub fn get_align_str(&self) -> String
pub fn to_csv_header() -> String
pub fn to_csv(&self) -> String
pub fn print_csv_header()
pub fn print_as_csv(&self)
Trait Implementations§
impl Eq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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