pub struct CodegenPipeline { /* private fields */ }Expand description
Main code generation pipeline
Implementations§
Source§impl CodegenPipeline
impl CodegenPipeline
pub fn new(config: CodegenConfig) -> Self
Sourcepub fn compile_declaration(&mut self, expr: &Expr) -> CodegenResult<String>
pub fn compile_declaration(&mut self, expr: &Expr) -> CodegenResult<String>
Compile a kernel declaration to target code
Sourcepub fn compile_module(&mut self, exprs: Vec<&Expr>) -> CodegenResult<String>
pub fn compile_module(&mut self, exprs: Vec<&Expr>) -> CodegenResult<String>
Compile a module (collection of declarations)
Auto Trait Implementations§
impl Freeze for CodegenPipeline
impl RefUnwindSafe for CodegenPipeline
impl Send for CodegenPipeline
impl Sync for CodegenPipeline
impl Unpin for CodegenPipeline
impl UnsafeUnpin for CodegenPipeline
impl UnwindSafe for CodegenPipeline
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