Struct jit::CompiledFunction [] [src]

pub struct CompiledFunction<'a> {
    // some fields omitted
}

A function which has already been compiled from an UncompiledFunction, so it can be called but not added to.

A function persists for the lifetime of its containing context. This is a function which has already been compiled and is now in executable form.

Methods

impl<'a> CompiledFunction<'a>

fn with<A, R, F: FnOnce( extern "C" fn(A) -> R)>(self, cb: F)

Run a closure with the compiled function as an argument

Methods from Deref<Target=Func>

fn is_compiled(&self) -> bool

Check if the given function has been compiled

fn get_signature(&self) -> &Ty

Get the signature of the given function

Trait Implementations

impl<'a> From<jit_function_t> for CompiledFunction<'a>

fn from(ptr: jit_function_t) -> CompiledFunction<'a>

impl<'a> Deref for CompiledFunction<'a>

type Target = Func

fn deref(&self) -> &Func

impl<'a> DerefMut for CompiledFunction<'a>

fn deref_mut(&mut self) -> &mut Func

impl<'a> Debug for CompiledFunction<'a>

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl<'a> Copy for CompiledFunction<'a>

impl<'a> Clone for CompiledFunction<'a>

fn clone(&self) -> CompiledFunction<'a>

fn clone_from(&mut self, source: &Self)