Struct pelite::pe64::headers::SectionHeaders
source · #[repr(transparent)]pub struct SectionHeaders(_);
Expand description
Section headers.
Implementations
sourceimpl 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
sourceimpl Debug for SectionHeaders
impl Debug for SectionHeaders
sourceimpl<'a> IntoIterator for &'a SectionHeaders
impl<'a> IntoIterator for &'a SectionHeaders
type Item = &'a SectionHeader
type Item = &'a SectionHeader
The type of the elements being iterated over.
type IntoIter = Iter<'a, SectionHeader>
type IntoIter = Iter<'a, SectionHeader>
Which kind of iterator are we turning this into?
sourceimpl Serialize for SectionHeaders
impl Serialize for SectionHeaders
impl Pod for SectionHeaders
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PodMethods for Twhere
T: Pod + ?Sized,
impl<T> PodMethods for Twhere
T: Pod + ?Sized,
sourcefn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a byte slice.
sourcefn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn as_bytes_mut(&mut self) -> &mut [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Returns the object’s memory as a mutable byte slice.
sourcefn as_data_view(&self) -> &DataView
fn as_data_view(&self) -> &DataView
Returns a data view into the object’s memory.
sourcefn 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.