Enum elflib::SectionHeader
source · pub enum SectionHeader {
SectionHeader64(SectionHeader64),
SectionHeader32(SectionHeader32),
}
Variants§
SectionHeader64(SectionHeader64)
SectionHeader32(SectionHeader32)
Implementations§
source§impl SectionHeader
impl SectionHeader
pub fn address(&self) -> u64
pub fn set_address(&mut self, new_value: u64)
pub fn address_alignemnt(&self) -> u64
pub fn set_address_alignemnt(&mut self, new_value: u64)
pub fn entry_size(&self) -> u64
pub fn set_entry_size(&mut self, new_value: u64)
pub fn flags(&self) -> SectionHeaderFlags
pub fn set_flags(&mut self, new_value: SectionHeaderFlags)
pub fn info(&self) -> u32
pub fn info_mut(&mut self) -> &mut u32
pub fn set_info(&mut self, new_value: u32)
pub fn link(&self) -> u32
pub fn link_mut(&mut self) -> &mut u32
pub fn set_link(&mut self, new_value: u32)
pub fn name_offset(&self) -> u32
pub fn name_offset_mut(&mut self) -> &mut u32
pub fn set_name_offset(&mut self, new_value: u32)
pub fn offset(&self) -> u64
pub fn set_offset(&mut self, new_value: u64)
pub fn size(&self) -> u64
pub fn set_size(&mut self, new_value: u64)
pub fn ty(&self) -> &SectionHeaderType
pub fn ty_mut(&mut self) -> &mut SectionHeaderType
pub fn set_ty(&mut self, new_value: SectionHeaderType)
Trait Implementations§
source§impl Clone for SectionHeader
impl Clone for SectionHeader
source§fn clone(&self) -> SectionHeader
fn clone(&self) -> SectionHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SectionHeader
impl Debug for SectionHeader
source§impl Hash for SectionHeader
impl Hash for SectionHeader
source§impl PartialEq for SectionHeader
impl PartialEq for SectionHeader
source§fn eq(&self, other: &SectionHeader) -> bool
fn eq(&self, other: &SectionHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> VariantStructBinarySerde<'a> for SectionHeader
impl<'a> VariantStructBinarySerde<'a> for SectionHeader
type Context = ()
fn deserialize( deserializer: &mut BinaryDeserializerFromBufSafe<'a>, parser: &ElfParser<'a>, context: () ) -> Result<Self, BinarySerdeBufSafeError>
fn record_len(file_info: &ElfFileInfo) -> usize
fn serialize(&self, buf: &mut [u8], endianness: Endianness)
impl Eq for SectionHeader
impl StructuralPartialEq for SectionHeader
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