pub struct SectionHeader { /* private fields */ }Implementations§
Source§impl SectionHeader
impl SectionHeader
pub const SHT_NULL: u32 = 0u32
pub const SHT_PROGBITS: u32 = 1u32
pub const SHT_STRTAB: u32 = 3u32
pub const SHT_NOBITS: u32 = 8u32
pub const SHT_DYNAMIC: u32 = 6u32
pub const SHT_DYNSYM: u32 = 11u32
pub const SHT_REL: u32 = 9u32
pub const SHF_WRITE: u64 = 1u64
pub const SHF_ALLOC: u64 = 2u64
pub const SHF_EXECINSTR: u64 = 4u64
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 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