pub struct Codegen { /* private fields */ }Implementations§
Source§impl Codegen
impl Codegen
pub fn new() -> Self
pub fn line(self, line_content: impl ToString) -> Self
pub fn line_cond(self, cond: bool, line_content: impl ToString) -> Self
pub fn line_skip(self, line_count: usize) -> Self
pub fn block(self, block: Block) -> Self
pub fn block_vec(self, block_vec: Vec<Block>) -> Self
Trait Implementations§
impl StructuralPartialEq for Codegen
Auto Trait Implementations§
impl Freeze for Codegen
impl RefUnwindSafe for Codegen
impl Send for Codegen
impl Sync for Codegen
impl Unpin for Codegen
impl UnwindSafe for Codegen
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