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