pub struct SectionHeader { /* private fields */ }Implementations§
Source§impl SectionHeader
impl SectionHeader
pub const SHT_NULL: u32 = 0
pub const SHT_PROGBITS: u32 = 1
pub const SHT_STRTAB: u32 = 3
pub const SHT_NOBITS: u32 = 8
pub const SHT_DYNAMIC: u32 = 6
pub const SHT_DYNSYM: u32 = 11
pub const SHT_REL: u32 = 9
pub const SHF_WRITE: u64 = 0x1
pub const SHF_ALLOC: u64 = 0x2
pub const SHF_EXECINSTR: u64 = 0x4
pub fn new( name_offset: u32, sh_type: u32, flags: u64, addr: u64, offset: u64, size: u64, link: u32, info: u32, addralign: u64, entsize: u64, ) -> Self
pub fn bytecode(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SectionHeader
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnsafeUnpin for SectionHeader
impl UnwindSafe for SectionHeader
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more