pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new( module: LLVMModuleRef, name: &str, function_type: LLVMTypeRef, ) -> Function
pub fn from_ptr(func_ptr: LLVMValueRef) -> Function
pub fn append_basic_block(&self, name: &str) -> LLVMBasicBlockRef
pub fn as_ref(&self) -> LLVMValueRef
pub fn get_param(&self, index: u32) -> LLVMValueRef
pub fn params_count(&self) -> u32
pub fn get_function_type(&self) -> LLVMTypeRef
pub fn get_return_type(&self) -> LLVMTypeRef
pub fn get_param_types(&self) -> LLVMTypeRef
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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