pub struct FnPtr {
pub index: u32,
pub module_id: u16,
}Expand description
A function pointer in the runtime.
Functions are identified by an index into the global function table. This allows us to represent function pointers without actual raw pointers.
Fields§
§index: u32Index into the global function table.
module_id: u16Module that defines this function (for multi-module support).
Implementations§
Trait Implementations§
impl Copy for FnPtr
impl Eq for FnPtr
impl StructuralPartialEq for FnPtr
Auto Trait Implementations§
impl Freeze for FnPtr
impl RefUnwindSafe for FnPtr
impl Send for FnPtr
impl Sync for FnPtr
impl Unpin for FnPtr
impl UnsafeUnpin for FnPtr
impl UnwindSafe for FnPtr
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