pub struct Rela {
pub r_offset: u64,
pub r_sym: u32,
pub r_type: u32,
pub r_addend: i64,
}
Fields§
§r_offset: u64
§r_sym: u32
§r_type: u32
§r_addend: i64
Trait Implementations§
Source§impl ParseAt for Rela
impl ParseAt for Rela
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
impl Eq for Rela
impl StructuralPartialEq for Rela
Auto Trait Implementations§
impl Freeze for Rela
impl RefUnwindSafe for Rela
impl Send for Rela
impl Sync for Rela
impl Unpin for Rela
impl UnwindSafe for Rela
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