macro_rules! putstr {
($plane:expr, $($args:tt)*) => { ... };
(+render $plane:expr, $($args:tt)*) => { ... };
}Expand description
Prints to a plane, similarly as print!.
Plane.putstr using the format! syntax.
Optionally renders with +render as first argument.
ยงExample
assert_eq![12, putstr!(plane, "hello\nworld\n")?];
putstr!(plane, "formatted text: {:?}\n", (0, 1.0, "two") )?;
putstr!(+render plane, "renders afterwards = {}", true)?;