pub enum Rela {
RelaMips64(RelaMips64),
RelaRegular(RelaRegular),
}
Variants§
RelaMips64(RelaMips64)
RelaRegular(RelaRegular)
Implementations§
source§impl Rela
impl Rela
pub fn offset(&self) -> u64
pub fn set_offset(&mut self, new_value: u64)
pub fn to_rel_and_addend(self) -> (Rel, i64)
pub fn from_rel_and_addend(rel: Rel, addend: i64) -> Self
pub fn to_generic_rel(self) -> GenericRel
Trait Implementations§
source§impl From<Rela> for GenericRel
impl From<Rela> for GenericRel
source§impl PartialEq for Rela
impl PartialEq for Rela
source§impl<'a> VariantStructBinarySerde<'a> for Rela
impl<'a> VariantStructBinarySerde<'a> for Rela
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 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