pub trait Statement {
// Required method
fn write(&self, b: &mut CodeBuffer, level: usize);
// Provided method
fn to_code(&self) -> String { ... }
}Expand description
Code that spans one or more lines.
Required Methods§
Sourcefn write(&self, b: &mut CodeBuffer, level: usize)
fn write(&self, b: &mut CodeBuffer, level: usize)
Writes the code to the buffer b at the indent level.