Struct symbolic::debuginfo::wasm::WasmObject [−][src]
pub struct WasmObject<'data> { /* fields omitted */ }
Expand description
Wasm object container (.wasm), used for executables and debug companions on web and wasi.
This can only parse binary wasm file and not wast files.
Implementations
Tries to parse a WASM from the given slice.
The container file format, which currently is always FileFormat::Wasm
.
The code identifier of this object.
Wasm does not yet provide code IDs.
The debug information identifier of a WASM file.
Wasm does not yet provide debug IDs.
The kind of this object.
The address at which the image prefers to be loaded into memory.
This is always 0 as this does not really apply to WASM.
Determines whether this object exposes a public symbol table.
pub fn symbols(&self) -> WasmSymbolIterator<'data, '_>ⓘNotable traits for WasmSymbolIterator<'data, 'object>impl<'data, 'object> Iterator for WasmSymbolIterator<'data, 'object> type Item = Symbol<'data>;
pub fn symbols(&self) -> WasmSymbolIterator<'data, '_>ⓘNotable traits for WasmSymbolIterator<'data, 'object>impl<'data, 'object> Iterator for WasmSymbolIterator<'data, 'object> type Item = Symbol<'data>;
impl<'data, 'object> Iterator for WasmSymbolIterator<'data, 'object> type Item = Symbol<'data>;
Returns an iterator over symbols in the public symbol table.
Returns an ordered map of symbols in the symbol table.
Determines whether this object contains debug information.
Constructs a debugging session.
Determines whether this object contains stack unwinding information.
Determines whether this object contains embedded source.
Determines whether this object is malformed and was only partially parsed
Returns the raw data of the WASM file.
Returns the offset of the code section.
Trait Implementations
type Ref = WasmObject<'slf>
type Ref = WasmObject<'slf>
The Self
type with 'slf
lifetimes, returned by as_self
.
Returns a reference to self
with downcasted lifetime.
type Error = DwarfError
type Error = DwarfError
Errors thrown when reading information from this object.
type Session = DwarfDebugSession<'data>
type Session = DwarfDebugSession<'data>
A session that allows optimized access to debugging information.
type SymbolIterator = WasmSymbolIterator<'data, 'object>
type SymbolIterator = WasmSymbolIterator<'data, 'object>
The iterator over the symbols in the public symbol table.
The container format of this file.
The kind of this object.
The address at which the image prefers to be loaded into memory.
Determines whether this object exposes a public symbol table.
pub fn symbols(
&'object self
) -> <WasmObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbols(
&'object self
) -> <WasmObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
Returns an iterator over symbols in the public symbol table.
Returns an ordered map of symbols in the symbol table.
Determines whether this object contains debug information.
pub fn debug_session(
&self
) -> Result<<WasmObject<'data> as ObjectLike<'data, 'object>>::Session, <WasmObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn debug_session(
&self
) -> Result<<WasmObject<'data> as ObjectLike<'data, 'object>>::Session, <WasmObject<'data> as ObjectLike<'data, 'object>>::Error>
Constructs a debugging session. Read more
Determines whether this object contains stack unwinding information.
Determines whether this object contains embedded sources.
Determines whether this object is malformed and was only partially parsed
Auto Trait Implementations
impl<'data> !RefUnwindSafe for WasmObject<'data>
impl<'data> Send for WasmObject<'data>
impl<'data> Sync for WasmObject<'data>
impl<'data> Unpin for WasmObject<'data>
impl<'data> !UnwindSafe for WasmObject<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more