#[non_exhaustive]pub struct Section {
pub filepath: PathBuf,
pub vram: u64,
pub size: u64,
pub section_type: String,
pub vrom: Option<u64>,
pub align: Option<u64>,
pub is_fill: bool,
pub symbols: Vec<Symbol>,
}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.filepath: PathBuf§vram: u64§size: u64§section_type: String§vrom: Option<u64>§align: Option<u64>§is_fill: bool§symbols: Vec<Symbol>Implementations§
Source§impl Section
impl Section
pub fn new( filepath: PathBuf, vram: u64, size: u64, section_type: String, 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_and_index_by_name( &self, sym_name: &str, ) -> Option<(&Symbol, usize)>
pub fn find_symbol_by_name_mut(&mut self, sym_name: &str) -> Option<&mut Symbol>
pub fn find_symbol_by_vram_or_vrom( &self, address: u64, ) -> Option<(&Symbol, i64)>
👎Deprecated since 2.7.0: Use
find_symbol_by_vram or find_symbol_by_vrom instead.pub fn find_symbol_by_vram(&self, address: u64) -> Option<(&Symbol, i64)>
pub fn find_symbol_by_vrom(&self, address: u64) -> Option<(&Symbol, i64)>
pub fn fixup_non_matching_symbols(&mut self)
👎Deprecated since 2.8.0: This functionality is perform automatically during parsing now.
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 Section
impl Section
pub fn is_placeholder(&self) -> bool
pub fn symbol_match_state_iter( &self, path_decomp_settings: Option<&PathDecompSettings<'_, '_>>, ) -> SymbolDecompStateIter<'_> ⓘ
Trait Implementations§
impl Eq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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