Struct mapfile_parser::Segment
source · pub struct Segment {
pub name: String,
pub vram: u64,
pub size: u64,
pub vrom: u64,
pub align: Option<u64>,
pub files_list: Vec<File>,
}Fields§
§name: String§vram: u64§size: u64§vrom: u64§align: Option<u64>§files_list: Vec<File>Implementations§
source§impl Segment
impl Segment
pub fn new( name: String, vram: u64, size: u64, vrom: u64, align: Option<u64> ) -> Self
pub fn filter_by_section_type(&self, section_type: &str) -> Self
pub fn get_every_file_except_section_type(&self, section_type: &str) -> Self
pub fn find_symbol_by_name(&self, sym_name: &str) -> Option<FoundSymbolInfo>
pub fn find_symbol_by_vram_or_vrom( &self, address: u64 ) -> Option<FoundSymbolInfo>
pub fn mix_folders(&self) -> Self
pub fn to_csv(&self, print_vram: bool, skip_without_symbols: bool) -> String
pub fn to_csv_symbols(&self) -> String
pub fn print_as_csv(&self, print_vram: bool, skip_without_symbols: bool)
pub fn print_symbols_csv(&self)
pub fn new_default(name: String, vram: u64, size: u64, vrom: u64) -> Self
pub fn clone_no_filelist(&self) -> Self
pub fn new_placeholder() -> Self
pub fn is_placeholder(&self) -> bool
Trait Implementations§
source§impl PartialEq for Segment
impl PartialEq for Segment
impl Eq for Segment
Auto Trait Implementations§
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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