Struct inkwell::execution_engine::JitFunction
source · pub struct JitFunction<'ctx, F> { /* private fields */ }
Expand description
A wrapper around a function pointer which ensures the function being pointed to doesn’t accidentally outlive its execution engine.
Implementations§
source§impl<'ctx, F: Copy> JitFunction<'ctx, F>
impl<'ctx, F: Copy> JitFunction<'ctx, F>
source§impl<Output, A, B, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, A, B, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, B, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, B, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, C, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, D, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, E, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, F, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: F, _: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, G, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: G, _: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: H, _: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, H, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: H, _: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: I, _: J, _: K, _: L, _: M) -> Output>
impl<Output, I, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: I, _: J, _: K, _: L, _: M) -> Output>
source§impl<Output, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: J, _: K, _: L, _: M) -> Output>
impl<Output, J, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: J, _: K, _: L, _: M) -> Output>
source§impl<Output, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: K, _: L, _: M) -> Output>
impl<Output, K, L, M> JitFunction<'_, unsafe extern "C" fn(_: K, _: L, _: M) -> Output>
source§impl<Output, L, M> JitFunction<'_, unsafe extern "C" fn(_: L, _: M) -> Output>
impl<Output, L, M> JitFunction<'_, unsafe extern "C" fn(_: L, _: M) -> Output>
source§impl<Output, M> JitFunction<'_, unsafe extern "C" fn(_: M) -> Output>
impl<Output, M> JitFunction<'_, unsafe extern "C" fn(_: M) -> Output>
Trait Implementations§
source§impl<'ctx, F: Clone> Clone for JitFunction<'ctx, F>
impl<'ctx, F: Clone> Clone for JitFunction<'ctx, F>
source§fn clone(&self) -> JitFunction<'ctx, F>
fn clone(&self) -> JitFunction<'ctx, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'ctx, F> Freeze for JitFunction<'ctx, F>where
F: Freeze,
impl<'ctx, F> RefUnwindSafe for JitFunction<'ctx, F>where
F: RefUnwindSafe,
impl<'ctx, F> !Send for JitFunction<'ctx, F>
impl<'ctx, F> !Sync for JitFunction<'ctx, F>
impl<'ctx, F> Unpin for JitFunction<'ctx, F>where
F: Unpin,
impl<'ctx, F> UnwindSafe for JitFunction<'ctx, F>where
F: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more