Trait jit::Compile
[−]
[src]
pub trait Compile<'a> { fn compile(self, func: &UncompiledFunction<'a>) -> &'a Val; fn get_type() -> CowType<'a>; }
A type that can be compiled into a LibJIT representation
The lifetime is the lifetime of the value
Required Methods
fn compile(self, func: &UncompiledFunction<'a>) -> &'a Val
Get a JIT representation of this value
fn get_type() -> CowType<'a>
Get the type descriptor that represents this type
Implementors
impl<'a> Compile<'a> for ()
impl<'a> Compile<'a> for f64
impl<'a> Compile<'a> for f32
impl<'a> Compile<'a> for isize
impl<'a> Compile<'a> for usize
impl<'a> Compile<'a> for i64
impl<'a> Compile<'a> for u64
impl<'a> Compile<'a> for i32
impl<'a> Compile<'a> for u32
impl<'a> Compile<'a> for i16
impl<'a> Compile<'a> for u16
impl<'a> Compile<'a> for i8
impl<'a> Compile<'a> for u8
impl<'a> Compile<'a> for bool
impl<'a> Compile<'a> for char
impl<'a, T> Compile<'a> for &'a T where T: Compile<'a> + Sized
impl<'a> Compile<'a> for &'a str
impl<'a> Compile<'a> for &'a CStr
impl<'a, A, B> Compile<'a> for (A, B) where A: Compile<'a>, B: Compile<'a>
impl<'a, A, B, C> Compile<'a> for (A, B, C) where A: Compile<'a>, B: Compile<'a>, C: Compile<'a>
impl<'a, A, B, C, D> Compile<'a> for (A, B, C, D) where A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, D: Compile<'a>
impl<'a, A, B, C, D, E> Compile<'a> for (A, B, C, D, E) where A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, D: Compile<'a>, E: Compile<'a>
impl<'a, R: Compile<'a>> Compile<'a> for fn() -> R
impl<'a, R: Compile<'a>> Compile<'a> for extern "C" fn() -> R
impl<'a, A: Compile<'a>, R: Compile<'a>> Compile<'a> for fn(A) -> R
impl<'a, A: Compile<'a>, R: Compile<'a>> Compile<'a> for extern "C" fn(A) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, R: Compile<'a>> Compile<'a> for fn(A, B) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, R: Compile<'a>> Compile<'a> for extern "C" fn(A, B) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, R: Compile<'a>> Compile<'a> for fn(A, B, C) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, R: Compile<'a>> Compile<'a> for extern "C" fn(A, B, C) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, D: Compile<'a>, R: Compile<'a>> Compile<'a> for fn(A, B, C, D) -> R
impl<'a, A: Compile<'a>, B: Compile<'a>, C: Compile<'a>, D: Compile<'a>, R: Compile<'a>> Compile<'a> for extern "C" fn(A, B, C, D) -> R