pub struct RustCodegen { /* private fields */ }Implementations§
Source§impl RustCodegen
impl RustCodegen
pub fn new() -> Self
pub fn generate(&mut self, toplevels: Vec<TopLevel>) -> String
pub fn ensure_brackets(&mut self, ctx: &mut Context, stmt: &Box<Statement>)
pub fn ensure_brackets_expr(&mut self, ctx: &mut Context, expr: &Expression)
pub fn ensure_brackets_body(&mut self, ctx: &mut Context, body: &StatementBody)
Trait Implementations§
Source§impl Default for RustCodegen
impl Default for RustCodegen
Source§fn default() -> RustCodegen
fn default() -> RustCodegen
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RustCodegen
impl RefUnwindSafe for RustCodegen
impl Send for RustCodegen
impl Sync for RustCodegen
impl Unpin for RustCodegen
impl UnsafeUnpin for RustCodegen
impl UnwindSafe for RustCodegen
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