INNER CODE UNIT · Rust
render
str4d/rage · rage/build.rs:83
fn render(self, w: &mut impl io::Write) -> io::Result<()> {
self.0.to_writer(w)
}
}
struct Example {
text: String,
commands: Vec<ExampleCommand>,
}
struct ExampleCommand {
cmd: &'static str,
output: Vec<String>,
}
impl Example {
const fn new(text: String) -> Self {
Self {