Trait tin_lang::module::Function

source ·
pub trait Function {
    unsafe fn from_ptr(ptr: *const u8) -> Self;
}
Expand description

A function that is exported from a Module.

Required Methods

Creates a new function from a raw pointer to generated machine code.

Unsafety

This is probably as unsafe as it gets, since the passed-in pointer will be treated as a pointer to arbitrary machine code. The pointer must come from a trusted source.

Implementors