pub enum Imports<'a> {
Single(Import<'a>),
Compact1 {
module: &'a str,
items: Cow<'a, [ImportCompact<'a>]>,
},
Compact2 {
module: &'a str,
ty: EntityType,
names: Cow<'a, [&'a str]>,
},
}Expand description
A single entry in the import section of a WebAssembly module, possibly containing multiple imports.
Variants§
Single(Import<'a>)
A single import item.
Compact1
A group of imports with a common module name.
Fields
§
items: Cow<'a, [ImportCompact<'a>]>The individual import items (name/type).
Compact2
A group of imports with a common module name and type.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Imports<'a>
impl<'a> RefUnwindSafe for Imports<'a>
impl<'a> Send for Imports<'a>
impl<'a> Sync for Imports<'a>
impl<'a> Unpin for Imports<'a>
impl<'a> UnwindSafe for Imports<'a>
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