pub struct Context { /* private fields */ }Implementations§
Source§impl 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 Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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