pub struct Class {
pub is_64: bool,
}
Expand description
An ELF file class.
Fields§
§is_64: bool
Whether the file is 64-bit.
Implementations§
source§impl Class
impl Class
sourcepub fn file_header_size(self) -> usize
pub fn file_header_size(self) -> usize
Return the size of the file header.
sourcepub fn program_header_size(self) -> usize
pub fn program_header_size(self) -> usize
Return the size of a program header.
sourcepub fn section_header_size(self) -> usize
pub fn section_header_size(self) -> usize
Return the size of a section header.
sourcepub fn hash_size(self, bucket_count: u32, chain_count: u32) -> usize
pub fn hash_size(self, bucket_count: u32, chain_count: u32) -> usize
Return the size of a hash table.
sourcepub fn gnu_hash_size(
self,
bloom_count: u32,
bucket_count: u32,
symbol_count: u32,
) -> usize
pub fn gnu_hash_size( self, bloom_count: u32, bucket_count: u32, symbol_count: u32, ) -> usize
Return the size of a GNU hash table.
sourcepub fn gnu_versym_size(self, symbol_count: usize) -> usize
pub fn gnu_versym_size(self, symbol_count: usize) -> usize
Return the size of a GNU symbol version section.
sourcepub fn gnu_verdef_size(self, verdef_count: usize, verdaux_count: usize) -> usize
pub fn gnu_verdef_size(self, verdef_count: usize, verdaux_count: usize) -> usize
Return the size of a GNU version definition section.
sourcepub fn gnu_verneed_size(
self,
verneed_count: usize,
vernaux_count: usize,
) -> usize
pub fn gnu_verneed_size( self, verneed_count: usize, vernaux_count: usize, ) -> usize
Return the size of a GNU version dependency section.
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.