#[repr(C)]pub struct Anyfunc {
pub func: *const Func,
pub ctx: *mut Ctx,
pub sig_id: SigId,
}Expand description
Caller-checked anyfunc
Fields§
§func: *const FuncConst pointer to Func.
ctx: *mut CtxMutable pointer to Ctx.
sig_id: SigIdSig id of this function
Implementations§
Source§impl Anyfunc
impl Anyfunc
Sourcepub const fn offset_func() -> u8
pub const fn offset_func() -> u8
Offset to the func field.
Sourcepub const fn offset_vmctx() -> u8
pub const fn offset_vmctx() -> u8
Offset to the vmctx field..
Sourcepub const fn offset_sig_id() -> u8
pub const fn offset_sig_id() -> u8
Offset to the sig_id field.
Trait Implementations§
impl Copy for Anyfunc
impl Send for Anyfunc
Auto Trait Implementations§
impl Freeze for Anyfunc
impl !RefUnwindSafe for Anyfunc
impl !Sync for Anyfunc
impl Unpin for Anyfunc
impl !UnwindSafe for Anyfunc
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