pub struct WasmFile { /* private fields */ }
Expand description
A WebAssembly object file.
Implementations§
Trait Implementations§
source§impl<'file> Object<'static, 'file> for WasmFile
impl<'file> Object<'static, 'file> for WasmFile
§type Segment = WasmSegment<'file>
type Segment = WasmSegment<'file>
A segment in the object file.
§type SegmentIterator = WasmSegmentIterator<'file>
type SegmentIterator = WasmSegmentIterator<'file>
An iterator over the segments in the object file.
§type Section = WasmSection<'file>
type Section = WasmSection<'file>
A section in the object file.
§type SectionIterator = WasmSectionIterator<'file>
type SectionIterator = WasmSectionIterator<'file>
An iterator over the sections in the object file.
§type SymbolIterator = WasmSymbolIterator<'file>
type SymbolIterator = WasmSymbolIterator<'file>
An iterator over the symbols in the object file.
source§fn segments(&'file self) -> Self::SegmentIterator
fn segments(&'file self) -> Self::SegmentIterator
Get an iterator over the segments in the file.
source§fn section_by_name(&'file self, section_name: &str) -> Option<WasmSection<'file>>
fn section_by_name(&'file self, section_name: &str) -> Option<WasmSection<'file>>
Get the section named
section_name
, if such a section exists. Read moresource§fn sections(&'file self) -> Self::SectionIterator
fn sections(&'file self) -> Self::SectionIterator
Get an iterator over the sections in the file.
source§fn symbol_by_index(&self, _index: u64) -> Option<Symbol<'static>>
fn symbol_by_index(&self, _index: u64) -> Option<Symbol<'static>>
Get the debugging symbol at the given index. Read more
source§fn symbols(&'file self) -> Self::SymbolIterator
fn symbols(&'file self) -> Self::SymbolIterator
Get an iterator over the debugging symbols in the file. Read more
source§fn dynamic_symbols(&'file self) -> Self::SymbolIterator
fn dynamic_symbols(&'file self) -> Self::SymbolIterator
Get an iterator over the dynamic linking symbols in the file. Read more
source§fn symbol_map(&self) -> SymbolMap<'static>
fn symbol_map(&self) -> SymbolMap<'static>
Construct a map from addresses to symbols.
source§fn is_little_endian(&self) -> bool
fn is_little_endian(&self) -> bool
Return true if the file is little endian, false if it is big endian.
source§fn has_debug_symbols(&self) -> bool
fn has_debug_symbols(&self) -> bool
Return true if the file contains debug information sections, false if not.