pub struct FuncRef {
pub type_index: u32,
pub func_index: u32,
}Expand description
A single table entry: a typed function reference.
Fields§
§type_index: u32Index into the module’s type section. Used by call_indirect to
verify the caller’s expected signature matches the callee’s actual
signature. A mismatch is a trap (IndirectCallTypeMismatch).
func_index: u32Index into the module’s function index space. The transpiler generates a match/dispatch over this value to call the right concrete Rust function.
Trait Implementations§
impl Copy for FuncRef
impl Eq for FuncRef
impl StructuralPartialEq for FuncRef
Auto Trait Implementations§
impl Freeze for FuncRef
impl RefUnwindSafe for FuncRef
impl Send for FuncRef
impl Sync for FuncRef
impl Unpin for FuncRef
impl UnsafeUnpin for FuncRef
impl UnwindSafe for FuncRef
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