pub struct RuntimeFnDescriptor {
pub symbol: &'static str,
pub export_name: &'static str,
pub params: &'static [WasmValType],
pub result: Option<WasmValType>,
pub lowering: LoweringMode,
}Expand description
Descriptor for one runtime function available to generated WASM code.
Fields§
§symbol: &'static strCanonical symbol name used in MIR extern calls.
export_name: &'static strExport name expected in the final WASM module.
params: &'static [WasmValType]Ordered parameter value types.
result: Option<WasmValType>Optional result value type.
lowering: LoweringModeBackend lowering behavior for this function.
Trait Implementations§
Source§impl Clone for RuntimeFnDescriptor
impl Clone for RuntimeFnDescriptor
Source§fn clone(&self) -> RuntimeFnDescriptor
fn clone(&self) -> RuntimeFnDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeFnDescriptor
impl Debug for RuntimeFnDescriptor
Source§impl PartialEq for RuntimeFnDescriptor
impl PartialEq for RuntimeFnDescriptor
impl Copy for RuntimeFnDescriptor
impl Eq for RuntimeFnDescriptor
impl StructuralPartialEq for RuntimeFnDescriptor
Auto Trait Implementations§
impl Freeze for RuntimeFnDescriptor
impl RefUnwindSafe for RuntimeFnDescriptor
impl Send for RuntimeFnDescriptor
impl Sync for RuntimeFnDescriptor
impl Unpin for RuntimeFnDescriptor
impl UnwindSafe for RuntimeFnDescriptor
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