Macro fomat_macros::pint
[−]
[src]
macro_rules! pint { ($($arg:tt)*) => { ... }; }
Prints to stdout. Analogous to print!
.
See the crate root for general help on the syntax.
Return value
The macro returns ()
.
Panics
The macro panics when printing was not successful.
Behaviour in #[test]
The behaviour when testing is similar to print!
:
the output of this macro will be captured by the
testing framework (meaning that by default cargo test
won't show the output).
The only limitation and difference from print!
is
that when pint!
is called by a different crate
than the one being tested, the output won't be captured
and will allways be printed to stdout.
Examples
pint!("four = "(2+2));