#[repr(C)]pub struct Dyn32<E: Endian> {
pub d_tag: U32<E>,
pub d_val: U32<E>,
}
Expand description
Dynamic section entry.
Fields§
§d_tag: U32<E>
Dynamic entry type.
d_val: U32<E>
Value (integer or address).
Trait Implementations§
source§impl<Endian: Endian> Dyn for Dyn32<Endian>
impl<Endian: Endian> Dyn for Dyn32<Endian>
type Word = u32
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 Dyn32<E>
impl<E: Endian> Pod for Dyn32<E>
Auto Trait Implementations§
impl<E> Freeze for Dyn32<E>
impl<E> RefUnwindSafe for Dyn32<E>where
E: RefUnwindSafe,
impl<E> Send for Dyn32<E>where
E: Send,
impl<E> Sync for Dyn32<E>where
E: Sync,
impl<E> Unpin for Dyn32<E>where
E: Unpin,
impl<E> UnwindSafe for Dyn32<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
)