[][src]Struct goblin::mach::symbols::Nlist

pub struct Nlist {
    pub n_strx: usize,
    pub n_type: u8,
    pub n_sect: usize,
    pub n_desc: u16,
    pub n_value: u64,
}

Fields

n_strx: usize

index into the string table

n_type: u8

type flag, see below

n_sect: usize

section number or NO_SECT

n_desc: u16

see <mach-o/stab.h>

n_value: u64

value of this symbol (or stab offset)

Methods

impl Nlist[src]

pub fn get_type(&self) -> u8[src]

Gets this symbol's type in bits 0xe

pub fn type_str(&self) -> &'static str[src]

Gets the str representation of the type of this symbol

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

Whether this symbol is global or not

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

Whether this symbol is undefined or not

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

Whether this symbol is a symbolic debugging entry

Trait Implementations

impl Clone for Nlist[src]

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

Performs copy-assignment from source. Read more

impl From<Nlist32> for Nlist[src]

impl From<Nlist64> for Nlist[src]

impl From<Nlist> for Nlist32[src]

impl From<Nlist> for Nlist64[src]

impl Debug for Nlist[src]

impl<'a> TryFromCtx<'a, Ctx, [u8]> for Nlist[src]

type Error = Error

type Size = usize

impl IntoCtx<Ctx, [u8]> for Nlist[src]

impl TryIntoCtx<Ctx, [u8]> for Nlist[src]

type Error = Error

type Size = usize

impl SizeWith<Ctx> for Nlist[src]

type Units = usize

Auto Trait Implementations

impl Send for Nlist

impl Sync for Nlist

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.