Macro try_print::try_println [] [src]

macro_rules! try_println {
    ($fmt:expr) => { ... };
    ($fmt:expr, $($arg:tt)*) => { ... };
}

Macro for printing to the standard output, with a newline.

Use the format! syntax to write data to the standard output. See std::fmt for more information.

Examples

use try_print;
try_println!("hello there!").unwrap();
try_println!("format {} arguments", "some").unwrap();