Struct elf::hash::SysVHashHeader
source · pub struct SysVHashHeader {
pub nbucket: u32,
pub nchain: u32,
}
Expand description
Header at the start of SysV Hash Table sections of type SHT_HASH.
Fields§
§nbucket: u32
§nchain: u32
Trait Implementations§
source§impl Clone for SysVHashHeader
impl Clone for SysVHashHeader
source§fn clone(&self) -> SysVHashHeader
fn clone(&self) -> SysVHashHeader
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 SysVHashHeader
impl Debug for SysVHashHeader
source§impl ParseAt for SysVHashHeader
impl ParseAt for SysVHashHeader
source§fn parse_at<E: EndianParse>(
endian: E,
_class: Class,
offset: &mut usize,
data: &[u8]
) -> Result<Self, ParseError>
fn parse_at<E: EndianParse>( endian: E, _class: Class, offset: &mut usize, data: &[u8] ) -> Result<Self, ParseError>
Parse this type by using the given endian-awareness and ELF class layout.
This is generic on EndianParse in order to allow users to optimize for
their expectations of data layout. See EndianParse for more details.
source§fn size_for(_class: Class) -> usize
fn size_for(_class: Class) -> usize
Returns the expected size of the type being parsed for the given ELF class
source§fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
fn validate_entsize(class: Class, entsize: usize) -> Result<usize, ParseError>
Checks whether the given entsize matches what we need to parse this type Read more
source§impl PartialEq for SysVHashHeader
impl PartialEq for SysVHashHeader
source§fn eq(&self, other: &SysVHashHeader) -> bool
fn eq(&self, other: &SysVHashHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SysVHashHeader
impl StructuralEq for SysVHashHeader
impl StructuralPartialEq for SysVHashHeader
Auto Trait Implementations§
impl RefUnwindSafe for SysVHashHeader
impl Send for SysVHashHeader
impl Sync for SysVHashHeader
impl Unpin for SysVHashHeader
impl UnwindSafe for SysVHashHeader
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