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
Metadata found inside a WebAssembly component.
Fields
§
registry_metadata: Option<RegistryMetadata>
The component’s registry metadata section, if any.
Module
Metadata found inside a WebAssembly module.
Fields
§
registry_metadata: Option<RegistryMetadata>
The module’s registry metadata section, if any.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
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