Struct object::WasmFile [−][src]
pub struct WasmFile { /* fields omitted */ }A WebAssembly object file.
Methods
impl<'data> WasmFile[src]
impl<'data> WasmFileTrait Implementations
impl Debug for WasmFile[src]
impl Debug for WasmFilefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'file> Object<'static, 'file> for WasmFile[src]
impl<'file> Object<'static, 'file> for WasmFiletype Segment = WasmSegment<'file>
A segment in the object file.
type SegmentIterator = WasmSegmentIterator<'file>
An iterator over the segments in the object file.
type Section = WasmSection<'file>
A section in the object file.
type SectionIterator = WasmSectionIterator<'file>
An iterator over the sections in the object file.
type SymbolIterator = WasmSymbolIterator<'file>
An iterator over the symbols in the object file.
fn machine(&self) -> Machine[src]
fn machine(&self) -> MachineGet the machine type of the file.
fn segments(&'file self) -> Self::SegmentIterator[src]
fn segments(&'file self) -> Self::SegmentIteratorGet an iterator over the segments in the file.
fn entry(&'file self) -> u64[src]
fn entry(&'file self) -> u64Get the entry point address of the binary
fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'static, [u8]>>[src]
fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'static, [u8]>>Get the contents of the section named section_name, if such a section exists. Read more
fn sections(&'file self) -> Self::SectionIterator[src]
fn sections(&'file self) -> Self::SectionIteratorGet an iterator over the sections in the file.
fn symbols(&'file self) -> Self::SymbolIterator[src]
fn symbols(&'file self) -> Self::SymbolIteratorGet an iterator over the debugging symbols in the file.
fn dynamic_symbols(&'file self) -> Self::SymbolIterator[src]
fn dynamic_symbols(&'file self) -> Self::SymbolIteratorGet an iterator over the dynamic linking symbols in the file.
fn symbol_map(&self) -> SymbolMap<'static>[src]
fn symbol_map(&self) -> SymbolMap<'static>Construct a map from addresses to symbols.
fn is_little_endian(&self) -> bool[src]
fn is_little_endian(&self) -> boolReturn true if the file is little endian, false if it is big endian.
fn has_debug_symbols(&self) -> bool[src]
fn has_debug_symbols(&self) -> boolReturn true if the file contains debug information sections, false if not.
fn mach_uuid(&self) -> Option<Uuid>[src]
fn mach_uuid(&self) -> Option<Uuid>The UUID from a Mach-O LC_UUID load command.
fn build_id(&self) -> Option<&'data [u8]>[src]
fn build_id(&self) -> Option<&'data [u8]>The build ID from an ELF NT_GNU_BUILD_ID note.
fn gnu_debuglink(&self) -> Option<(&'data [u8], u32)>[src]
fn gnu_debuglink(&self) -> Option<(&'data [u8], u32)>The filename and CRC from a .gnu_debuglink section.