Enum wasm_metadata::Metadata
source · pub enum Metadata {
Component {
name: Option<String>,
producers: Option<Producers>,
registry_metadata: Option<RegistryMetadata>,
children: Vec<Box<Metadata>>,
range: Range<usize>,
},
Module {
name: Option<String>,
producers: Option<Producers>,
registry_metadata: Option<RegistryMetadata>,
range: Range<usize>,
},
}
Expand description
A tree of the metadata found in a WebAssembly binary.
Variants§
Component
Fields
§
registry_metadata: Option<RegistryMetadata>
The component’s registry metadata section, if any.
Metadata found inside a WebAssembly component.
Module
Fields
§
registry_metadata: Option<RegistryMetadata>
The module’s registry metadata section, if any.
Metadata found inside a WebAssembly module.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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