1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// Pipe-safe stdout printing -- alternative to print!.
/// This macro exists because there is no way to handle pipes ending abruptly with print!
/// For more information, read:
/// - https://users.rust-lang.org/t/why-does-the-pipe-cause-the-panic-in-the-standard-library/107222/4
/// - rust-lang/rust#97889
///
/// # Usage
/// Same arguments & expected behaviour as print!, with graceful handling of (expected) IO errors.
/// Pipe-safe stdout printing -- alternative to println!.
/// This macro exists because there is no way to handle pipes ending abruptly with println!
/// For more information, read:
/// - https://users.rust-lang.org/t/why-does-the-pipe-cause-the-panic-in-the-standard-library/107222/4
/// - rust-lang/rust#97889
///
/// # Usage
/// Same arguments & expected behaviour as println!, with graceful handling of (expected) IO errors.