Macro putstrln
Source macro_rules! putstrln {
($plane:expr) => { ... };
($plane:expr, $($args:tt)*) => { ... };
(+render $plane:expr) => { ... };
(+render $plane:expr, $($args:tt)*) => { ... };
}
Expand description
Prints to a plane, with a new line, similarly as println!.
Plane.putstrln using the format! syntax.
Optionally renders with +render as first argument.
ยงExample
assert_eq![12, putstrln!(plane, "hello world")?];
putstrln!(plane, "formatted text: {:?}", (0, 1.0, "two") )?;
putstrln!(+render plane)?;