pub enum WasmImport<'a> {
Func {
interface: Option<&'a WorldKey>,
func: &'a Function,
},
ResourceIntrinsic {
interface: Option<&'a WorldKey>,
resource: TypeId,
intrinsic: ResourceIntrinsic,
},
}
Expand description
Possible imports that can be passed to Resolve::wasm_import_name
.
Variants§
Func
A WIT function is being imported. Optionally from an interface.
Fields
ResourceIntrinsic
A resource-related intrinsic is being imported.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WasmImport<'a>
impl<'a> RefUnwindSafe for WasmImport<'a>
impl<'a> Send for WasmImport<'a>
impl<'a> Sync for WasmImport<'a>
impl<'a> Unpin for WasmImport<'a>
impl<'a> UnwindSafe for WasmImport<'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