pub struct ExportTrie<'a> { /* private fields */ }
Expand description
An export trie efficiently encodes all of the symbols exported by this binary for dynamic linking
Implementations§
Source§impl<'a> ExportTrie<'a>
impl<'a> ExportTrie<'a>
Sourcepub fn exports(&self, libs: &[&'a str]) -> Result<Vec<Export<'a>>>
pub fn exports(&self, libs: &[&'a str]) -> Result<Vec<Export<'a>>>
Walk the export trie for symbols exported by this binary, using the provided libs
to resolve re-exports
Sourcepub fn new(bytes: &'a [u8], command: &DyldInfoCommand) -> Self
pub fn new(bytes: &'a [u8], command: &DyldInfoCommand) -> Self
Create a new, lazy, zero-copy export trie from the DyldInfo
command
Sourcepub fn new_from_linkedit_data_command(
bytes: &'a [u8],
command: &LinkeditDataCommand,
) -> Self
pub fn new_from_linkedit_data_command( bytes: &'a [u8], command: &LinkeditDataCommand, ) -> Self
Create a new, lazy, zero-copy export trie from the LinkeditDataCommand
command
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExportTrie<'a>
impl<'a> RefUnwindSafe for ExportTrie<'a>
impl<'a> Send for ExportTrie<'a>
impl<'a> Sync for ExportTrie<'a>
impl<'a> Unpin for ExportTrie<'a>
impl<'a> UnwindSafe for ExportTrie<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more