Skip to main content

SymbolTable

Struct SymbolTable 

Source
pub struct SymbolTable<'data> { /* private fields */ }
Expand description

A parsed symbol table extracted from LC_SYMTAB.

Implementations§

Source§

impl<'data> SymbolTable<'data>

Source

pub fn symbols(&self) -> &[Symbol<'data>]

Performs symbols.

Source

pub fn len(&self) -> usize

Performs len.

Source

pub fn is_empty(&self) -> bool

Performs is_empty.

Source

pub fn get(&self, index: usize) -> Option<&Symbol<'data>>

Performs get.

Source

pub fn string_table(&self) -> &StringTable<'data>

Performs string_table.

Source

pub fn find_by_name(&self, name: &str) -> Option<&Symbol<'data>>

Performs find_by_name.

Source

pub fn defined(&self) -> impl Iterator<Item = &Symbol<'data>>

Performs defined.

Source

pub fn undefined(&self) -> impl Iterator<Item = &Symbol<'data>>

Performs undefined.

Source

pub fn stabs(&self) -> impl Iterator<Item = &Symbol<'data>>

Performs stabs.

Source

pub fn external(&self) -> impl Iterator<Item = &Symbol<'data>>

Performs external.

Trait Implementations§

Source§

impl Debug for SymbolTable<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'data> MachoExt<'data> for SymbolTable<'data>

Source§

type Error = ParseError

The Error associated type.
Source§

fn parse<'mf>( macho: &'mf MachoFile<'data>, ) -> Result<SymbolTable<'data>, ParseError>
where 'data: 'mf,

Performs parse.

Auto Trait Implementations§

§

impl<'data> Freeze for SymbolTable<'data>

§

impl<'data> RefUnwindSafe for SymbolTable<'data>

§

impl<'data> Send for SymbolTable<'data>

§

impl<'data> Sync for SymbolTable<'data>

§

impl<'data> Unpin for SymbolTable<'data>

§

impl<'data> UnsafeUnpin for SymbolTable<'data>

§

impl<'data> UnwindSafe for SymbolTable<'data>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.