Enum elflib::RelaRegular
source · pub enum RelaRegular {
RelaRegular32(RelaRegular32),
RelaRegular64(RelaRegular64),
}
Variants§
RelaRegular32(RelaRegular32)
RelaRegular64(RelaRegular64)
Implementations§
source§impl RelaRegular
impl RelaRegular
pub fn addend(&self) -> i64
pub fn set_addend(&mut self, new_value: i64)
pub fn info(&self) -> RelInfoRegular64
pub fn set_info(&mut self, new_value: RelInfoRegular64)
pub fn offset(&self) -> u64
pub fn set_offset(&mut self, new_value: u64)
source§impl RelaRegular
impl RelaRegular
pub fn to_rel_and_addend(self) -> (RelRegular, i64)
pub fn from_rel_and_addend(rel: RelRegular, addend: i64) -> Self
Trait Implementations§
source§impl Clone for RelaRegular
impl Clone for RelaRegular
source§fn clone(&self) -> RelaRegular
fn clone(&self) -> RelaRegular
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 RelaRegular
impl Debug for RelaRegular
source§impl Hash for RelaRegular
impl Hash for RelaRegular
source§impl PartialEq for RelaRegular
impl PartialEq for RelaRegular
source§fn eq(&self, other: &RelaRegular) -> bool
fn eq(&self, other: &RelaRegular) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> VariantStructBinarySerde<'a> for RelaRegular
impl<'a> VariantStructBinarySerde<'a> for RelaRegular
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 RelaRegular
impl StructuralPartialEq for RelaRegular
Auto Trait Implementations§
impl Freeze for RelaRegular
impl RefUnwindSafe for RelaRegular
impl Send for RelaRegular
impl Sync for RelaRegular
impl Unpin for RelaRegular
impl UnwindSafe for RelaRegular
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