#[non_exhaustive]pub struct Segment {
pub name: String,
pub vram: u64,
pub size: u64,
pub vrom: Option<u64>,
pub align: Option<u64>,
pub sections_list: Vec<Section>,
}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>§sections_list: Vec<Section>Implementations§
Source§impl Segment
impl Segment
pub fn new( name: String, vram: u64, size: u64, vrom: Option<u64>, align: Option<u64>, ) -> Self
pub fn filter_by_section_type(&self, section_type: &str) -> Self
pub fn get_every_section_except_section_type(&self, section_type: &str) -> Self
pub fn get_every_file_except_section_type(&self, section_type: &str) -> Self
👎Deprecated since 2.8.0: Use
get_every_section_except_section_type insteadpub fn find_symbol_by_name(&self, sym_name: &str) -> Option<FoundSymbolInfo<'_>>
pub fn find_symbol_by_vram_or_vrom( &self, address: u64, ) -> Option<FoundSymbolInfo<'_>>
👎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<FoundSymbolInfo<'_>>, Vec<&Section>)
pub fn find_symbol_by_vrom( &self, address: u64, ) -> (Option<FoundSymbolInfo<'_>>, Vec<&Section>)
pub fn mix_folders(&self) -> Self
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(&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_placeholder() -> Self
Trait Implementations§
impl Eq for Segment
Auto Trait Implementations§
impl Freeze for Segment
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