Struct goblin::elf::sym::sym64::Sym [−][src]
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
Implementations
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 Clone for Sym
[src]
impl Copy for Sym
[src]
impl Debug for Sym
[src]
impl Default for Sym
[src]
impl From<Sym> for ElfSym
[src]
impl From<Sym> for Sym
[src]
impl PartialEq<Sym> for Sym
[src]
impl Plain for Sym
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
[src]
pub fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
[src]
pub fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
[src]
pub fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
[src]
pub fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
[src]
pub fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
[src]
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
pub fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
[src]
impl SizeWith<Endian> for Sym
[src]
impl StructuralPartialEq for Sym
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Sym where
Sym: 'a,
[src]
Sym: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a Sym
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for Sym
[src]
Auto Trait Implementations
impl RefUnwindSafe for Sym
impl Send for Sym
impl Sync for Sym
impl Unpin for Sym
impl UnwindSafe for Sym
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,