pub struct LLvmProgramBuilder { /* private fields */ }Expand description
LLVM 程序构建器
Implementations§
Source§impl LLvmProgramBuilder
impl LLvmProgramBuilder
pub fn new() -> Self
pub fn add_function<F>( self, name: impl Into<String>, return_type: impl Into<String>, f: F, ) -> Self
pub fn add_global( self, name: impl Into<String>, ty: impl Into<String>, value: impl Into<String>, is_constant: bool, ) -> Self
pub fn build(self) -> LLvmProgram
Auto Trait Implementations§
impl Freeze for LLvmProgramBuilder
impl RefUnwindSafe for LLvmProgramBuilder
impl Send for LLvmProgramBuilder
impl Sync for LLvmProgramBuilder
impl Unpin for LLvmProgramBuilder
impl UnsafeUnpin for LLvmProgramBuilder
impl UnwindSafe for LLvmProgramBuilder
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