Struct mapfile_parser::File
source · pub struct File {
pub filepath: PathBuf,
pub vram: u64,
pub size: u64,
pub section_type: String,
pub vrom: Option<u64>,
pub align: Option<u64>,
pub symbols: Vec<Symbol>,
}Fields§
§filepath: PathBuf§vram: u64§size: u64§section_type: String§vrom: Option<u64>§align: Option<u64>§symbols: Vec<Symbol>Implementations§
source§impl File
impl File
pub fn new( filepath: PathBuf, vram: u64, size: u64, section_type: &str, vrom: Option<u64>, align: Option<u64> ) -> Self
pub fn is_noload_section(&self) -> bool
pub fn find_symbol_by_name(&self, sym_name: &str) -> Option<Symbol>
pub fn find_symbol_by_vram_or_vrom(&self, address: u64) -> Option<(Symbol, i64)>
pub fn to_csv_header(print_vram: bool) -> String
pub fn to_csv(&self, print_vram: bool) -> String
pub fn print_csv_header(print_vram: bool)
pub fn print_as_csv(&self, print_vram: bool)
source§impl File
impl File
pub fn new_default( filepath: PathBuf, vram: u64, size: u64, section_type: &str ) -> Self
pub fn clone_no_symbollist(&self) -> Self
pub fn new_placeholder() -> Self
pub fn is_placeholder(&self) -> bool
Trait Implementations§
source§impl PartialEq for File
impl PartialEq for File
impl Eq for File
Auto Trait Implementations§
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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