#[repr(C)]pub struct Dyn64<E: Endian> {
pub d_tag: U64<E>,
pub d_val: U64<E>,
}
Expand description
Dynamic section entry.
Fields§
§d_tag: U64<E>
Dynamic entry type.
d_val: U64<E>
Value (integer or address).
Trait Implementations§
source§impl<Endian: Endian> Dyn for Dyn64<Endian>
impl<Endian: Endian> Dyn for Dyn64<Endian>
type Word = u64
type Endian = Endian
fn d_tag(&self, endian: Self::Endian) -> Self::Word
fn d_val(&self, endian: Self::Endian) -> Self::Word
source§fn is_string(&self, endian: Self::Endian) -> bool
fn is_string(&self, endian: Self::Endian) -> bool
Return true if the value is an offset in the dynamic string table.
source§fn string<'data>(
&self,
endian: Self::Endian,
strings: StringTable<'data>,
) -> Result<&'data [u8]>
fn string<'data>( &self, endian: Self::Endian, strings: StringTable<'data>, ) -> Result<&'data [u8]>
Use the value to get a string in a string table. Read more
source§fn is_address(&self, endian: Self::Endian) -> bool
fn is_address(&self, endian: Self::Endian) -> bool
Return true if the value is an address.
impl<E: Copy + Endian> Copy for Dyn64<E>
impl<E: Endian> Pod for Dyn64<E>
Auto Trait Implementations§
impl<E> Freeze for Dyn64<E>
impl<E> RefUnwindSafe for Dyn64<E>where
E: RefUnwindSafe,
impl<E> Send for Dyn64<E>where
E: Send,
impl<E> Sync for Dyn64<E>where
E: Sync,
impl<E> Unpin for Dyn64<E>where
E: Unpin,
impl<E> UnwindSafe for Dyn64<E>where
E: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)