pub struct SectionHeaders(/* private fields */);Expand description
Section headers.
Implementations§
Source§impl SectionHeaders
impl SectionHeaders
Sourcepub fn image(&self) -> &[IMAGE_SECTION_HEADER]
pub fn image(&self) -> &[IMAGE_SECTION_HEADER]
Returns the underlying slice of section headers.
Sourcepub fn as_slice(&self) -> &[SectionHeader]
pub fn as_slice(&self) -> &[SectionHeader]
Gets the section headers as a slice of SectionHeader.
Sourcepub fn iter(&self) -> Iter<'_, SectionHeader>
pub fn iter(&self) -> Iter<'_, SectionHeader>
Returns an iterator over the SectionHeader elements.
Sourcepub fn by_name<S: ?Sized + AsRef<[u8]>>(
&self,
name: &S,
) -> Option<&SectionHeader>
pub fn by_name<S: ?Sized + AsRef<[u8]>>( &self, name: &S, ) -> Option<&SectionHeader>
Finds a section header by its name.
Sourcepub fn by_rva(&self, rva: u32) -> Option<&SectionHeader>
pub fn by_rva(&self, rva: u32) -> Option<&SectionHeader>
Finds a section header by its RVA.
Trait Implementations§
Source§impl Debug for SectionHeaders
impl Debug for SectionHeaders
Source§impl<'a> IntoIterator for &'a SectionHeaders
impl<'a> IntoIterator for &'a SectionHeaders
impl Pod for SectionHeaders
Auto Trait Implementations§
impl Freeze for SectionHeaders
impl RefUnwindSafe for SectionHeaders
impl Send for SectionHeaders
impl !Sized for SectionHeaders
impl Sync for SectionHeaders
impl Unpin for SectionHeaders
impl UnwindSafe for SectionHeaders
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
Source§impl<T> PodMethods for T
impl<T> PodMethods for T
Source§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Returns the object’s memory as a mutable byte slice.
Source§fn as_data_view(&self) -> &DataView
fn as_data_view(&self) -> &DataView
Returns a data view into the object’s memory.
Source§fn as_data_view_mut(&mut self) -> &mut DataView
fn as_data_view_mut(&mut self) -> &mut DataView
Returns a mutable data view into the object’s memory.