#[repr(C)]pub struct SectionHdr {
pub flag: SectionFlag,
pub _pad1: [u8; 3],
pub base: u32,
pub size: u32,
pub _pad2: [u8; 4],
}Expand description
The header of each section metadata.
Fields§
§flag: SectionFlagThe flag of the section.
_pad1: [u8; 3]Paddings of header.
base: u32The offset of the section start.
size: u32The size of the section.
_pad2: [u8; 4]Paddings of header.
Implementations§
Trait Implementations§
Source§impl Clone for SectionHdr
impl Clone for SectionHdr
Source§fn clone(&self) -> SectionHdr
fn clone(&self) -> SectionHdr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SectionHdr
Source§impl Debug for SectionHdr
impl Debug for SectionHdr
impl Pod for SectionHdr
Auto Trait Implementations§
impl Freeze for SectionHdr
impl RefUnwindSafe for SectionHdr
impl Send for SectionHdr
impl Sync for SectionHdr
impl Unpin for SectionHdr
impl UnsafeUnpin for SectionHdr
impl UnwindSafe for SectionHdr
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.