Skip to main content

ElfDyn

Struct ElfDyn 

Source
pub struct ElfDyn<L: ElfLayout = NativeElfLayout> { /* private fields */ }
Expand description

ELF dynamic section entry.

Implementations§

Source§

impl<L: ElfLayout> ElfDyn<L>

Source

pub fn new(tag: ElfDynamicTag, value: usize) -> Self

Creates an owned ELF dynamic entry from a tag and payload value.

Source

pub fn tag(&self) -> ElfDynamicTag

Returns the parsed ELF dynamic tag of this entry.

Source

pub fn value(&self) -> usize

Returns the dynamic value or pointer payload.

Source

pub fn set_tag(&mut self, tag: ElfDynamicTag)

Sets the dynamic tag (d_tag).

Source

pub fn set_value(&mut self, value: usize)

Sets the dynamic payload value (d_un).

Trait Implementations§

Source§

impl<L: ElfLayout> ByteRepr for ElfDyn<L>

Source§

impl<L: Debug + ElfLayout> Debug for ElfDyn<L>
where L::Dyn: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<L> Freeze for ElfDyn<L>
where <L as ElfLayout>::Dyn: Freeze,

§

impl<L> RefUnwindSafe for ElfDyn<L>
where <L as ElfLayout>::Dyn: RefUnwindSafe,

§

impl<L> Send for ElfDyn<L>
where <L as ElfLayout>::Dyn: Send,

§

impl<L> Sync for ElfDyn<L>
where <L as ElfLayout>::Dyn: Sync,

§

impl<L> Unpin for ElfDyn<L>
where <L as ElfLayout>::Dyn: Unpin,

§

impl<L> UnsafeUnpin for ElfDyn<L>
where <L as ElfLayout>::Dyn: UnsafeUnpin,

§

impl<L> UnwindSafe for ElfDyn<L>
where <L as ElfLayout>::Dyn: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.