Struct Sym32
struct Sym32<E: Endian> { ... }
Symbol table entry.
Fields
st_name: crate::endian::U32<E>Symbol name.
This is an offset into the symbol string table.
st_value: crate::endian::U32<E>Symbol value.
st_size: crate::endian::U32<E>Symbol size.
st_info: u8Symbol type and binding.
Use the
st_typeandst_bindmethods to access this value.st_other: u8Symbol visibility.
Use the
st_visibilitymethod to access this value.st_shndx: crate::endian::U16<E>Section index or one of the
SHN_*values.
Implementations
impl<E: Endian> Sym32<E>
fn st_bind(self: &Self) -> u8Get the
st_bindcomponent of thest_infofield.fn st_type(self: &Self) -> u8Get the
st_typecomponent of thest_infofield.fn set_st_info(self: &mut Self, st_bind: u8, st_type: u8)Set the
st_infofield given thest_bindandst_typecomponents.fn st_visibility(self: &Self) -> u8Get the
st_visibilitycomponent of thest_infofield.
impl<E> Freeze for Sym32<E>
impl<E> RefUnwindSafe for Sym32<E>
impl<E> Send for Sym32<E>
impl<E> Sync for Sym32<E>
impl<E> Unpin for Sym32<E>
impl<E> UnwindSafe for Sym32<E>
impl<E: $crate::clone::Clone + Endian> Clone for Sym32<E>
fn clone(self: &Self) -> Sym32<E>
impl<E: $crate::default::Default + Endian> Default for Sym32<E>
fn default() -> Sym32<E>
impl<E: $crate::fmt::Debug + Endian> Debug for Sym32<E>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<E: $crate::marker::Copy + Endian> Copy for Sym32<E>
impl<E: Endian> Pod for Sym32<E>
impl<Endian: endian::Endian> Sym for elf::Sym32<Endian>
fn st_name(self: &Self, endian: <Self as >::Endian) -> u32fn st_info(self: &Self) -> u8fn st_bind(self: &Self) -> u8fn st_type(self: &Self) -> u8fn st_other(self: &Self) -> u8fn st_visibility(self: &Self) -> u8fn st_shndx(self: &Self, endian: <Self as >::Endian) -> u16fn st_value(self: &Self, endian: <Self as >::Endian) -> <Self as >::Wordfn st_size(self: &Self, endian: <Self as >::Endian) -> <Self as >::Word
impl<T> Any for Sym32<E>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Sym32<E>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Sym32<E>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Sym32<E>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Sym32<E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Sym32<E>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Sym32<E>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Sym32<E>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Sym32<E>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>