pub struct IrToC { /* private fields */ }Expand description
IR to C code generator with reference counting
Implementations§
Source§impl IrToC
impl IrToC
pub fn new(config: CodegenConfig) -> Self
Sourcepub fn emit(&self, expr: &IrExpr) -> CodegenResult<String>
pub fn emit(&self, expr: &IrExpr) -> CodegenResult<String>
Emit C code for an IR expression
pub fn emit_c_type(&self, ty: &IrType) -> CodegenResult<String>
Auto Trait Implementations§
impl Freeze for IrToC
impl RefUnwindSafe for IrToC
impl Send for IrToC
impl Sync for IrToC
impl Unpin for IrToC
impl UnsafeUnpin for IrToC
impl UnwindSafe for IrToC
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