Struct code_gen::CodeBuffer
source · [−]pub struct CodeBuffer { /* private fields */ }
Expand description
Responsible for buffering code.
Implementations
sourceimpl CodeBuffer
impl CodeBuffer
Constructors
sourceimpl CodeBuffer
impl CodeBuffer
Writing
sourceimpl CodeBuffer
impl CodeBuffer
Exporting
sourceimpl CodeBuffer
impl CodeBuffer
Display
sourcepub fn display_expression<E: Expression>(expression: &E) -> String
pub fn display_expression<E: Expression>(expression: &E) -> String
Converts the expression to a string.
sourcepub fn display_statement<S: Statement>(statement: &S) -> String
pub fn display_statement<S: Statement>(statement: &S) -> String
Converts the statement to a string.
Trait Implementations
sourceimpl Clone for CodeBuffer
impl Clone for CodeBuffer
sourcefn clone(&self) -> CodeBuffer
fn clone(&self) -> CodeBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CodeBuffer
impl Debug for CodeBuffer
sourceimpl Default for CodeBuffer
impl Default for CodeBuffer
Auto Trait Implementations
impl RefUnwindSafe for CodeBuffer
impl Send for CodeBuffer
impl Sync for CodeBuffer
impl Unpin for CodeBuffer
impl UnwindSafe for CodeBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more