[][src]Struct goblin::elf::sym::sym64::Sym

#[repr(C)]
pub struct Sym {
    pub st_name: u32,
    pub st_info: u8,
    pub st_other: u8,
    pub st_shndx: u16,
    pub st_value: u64,
    pub st_size: u64,
}

64-bit Sym - used for both static and dynamic symbol information in a binary

Fields

st_name: u32

Symbol name (string tbl index)

st_info: u8

Symbol type and binding

st_other: u8

Symbol visibility

st_shndx: u16

Section index

st_value: u64

Symbol value

st_size: u64

Symbol size

Methods

impl Sym[src]

pub fn is_import(&self) -> bool[src]

Checks whether this Sym has STB_GLOBAL/STB_WEAK bind and a st_value of 0

pub fn is_function(&self) -> bool[src]

Checks whether this Sym has type STT_FUNC

Trait Implementations

impl PartialEq<Sym> for Sym[src]

impl Copy for Sym[src]

impl Default for Sym[src]

impl From<Sym> for ElfSym[src]

impl From<Sym> for Sym[src]

impl Clone for Sym[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Sym[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for Sym where
    Sym: 'a, 
[src]

type Error = Error

type Size = usize

impl<'a> TryIntoCtx<Endian, [u8]> for &'a Sym[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Endian, [u8]> for Sym[src]

type Error = Error

type Size = usize

impl SizeWith<Endian> for Sym[src]

type Units = usize

impl Plain for Sym[src]

Auto Trait Implementations

impl Send for Sym

impl Unpin for Sym

impl Sync for Sym

impl UnwindSafe for Sym

impl RefUnwindSafe for Sym

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]