pub struct Sections { /* private fields */ }Implementations§
Source§impl Sections
impl Sections
pub fn new() -> Self
pub fn add(&mut self, section: Section) -> Result<SectionIndex, SectionsError>
pub fn get(&self, index: SectionIndex) -> &Section
pub fn get_mut(&mut self, index: SectionIndex) -> &mut Section
pub fn by_name(&self, name: &str) -> Option<(SectionIndex, &Section)>
pub fn iter(&self) -> impl Iterator<Item = &Section>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Section>
pub fn len(&self) -> usize
pub fn get_by_contained_address( &self, address: u32, ) -> Option<(SectionIndex, &Section)>
pub fn get_by_contained_address_mut( &mut self, address: u32, ) -> Option<(SectionIndex, &mut Section)>
pub fn add_function(&mut self, function: Function)
pub fn sorted_by_address(&self) -> Vec<&Section>
pub fn functions(&self) -> impl Iterator<Item = &Function>
pub fn functions_mut(&mut self) -> impl Iterator<Item = &mut Function>
pub fn base_address(&self) -> Option<u32>
pub fn end_address(&self) -> Option<u32>
pub fn bss_size(&self) -> u32
pub fn bss_range(&self) -> Option<Range<u32>>
pub fn get_section_after(&self, text_end: u32) -> Option<&Section>
Trait Implementations§
Source§impl IntoIterator for Sections
impl IntoIterator for Sections
Auto Trait Implementations§
impl Freeze for Sections
impl RefUnwindSafe for Sections
impl Send for Sections
impl Sync for Sections
impl Unpin for Sections
impl UnwindSafe for Sections
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