pub enum Metadata {
Component {
name: Option<String>,
producers: Option<Producers>,
children: Vec<Box<Metadata>>,
range: Range<usize>,
},
Module {
name: Option<String>,
producers: Option<Producers>,
range: Range<usize>,
},
}
Expand description
A tree of the metadata found in a WebAssembly binary.
Fields
The component name, if any. Found in the component-name section.
The component’s producers section, if any.
All child modules and components inside the component.
Byte range of the module in the parent binary
Metadata found inside a WebAssembly component.
Fields
The module name, if any. Found in the name section.
The module’s producers section, if any.
Byte range of the module in the parent binary
Metadata found inside a WebAssembly module.
Parse metadata from a WebAssembly binary. Supports both core WebAssembly modules, and
WebAssembly components.
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.