Struct gnu_libjit::Context
source · [−]pub struct Context { /* private fields */ }Implementations
sourceimpl Context
impl Context
pub fn new() -> Context
pub fn build_start(&self)
pub fn build_end(&self)
sourcepub fn function(
&mut self,
abi: Abi,
return_type: JitType,
params: Vec<JitType>
) -> Result<Function, Exception>
pub fn function(
&mut self,
abi: Abi,
return_type: JitType,
params: Vec<JitType>
) -> Result<Function, Exception>
let mut context = Context::new(); let params = vec![JitType::Int] let function = context.function(Abi::Cdecl, JitType::Int, params.as_slice());
pub fn int_type() -> JitType
pub fn long_type() -> JitType
pub fn ulong_type() -> JitType
pub fn float32_type() -> JitType
pub fn float64_type() -> JitType
pub fn sbyte_type() -> JitType
pub fn ubyte_type() -> JitType
pub fn void_ptr_type() -> JitType
Auto Trait Implementations
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more