1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "print")]
mod print {
    #[macro_export]
    macro_rules! print_display {
        ($structure:ident) => {
            use std::fmt;

            impl fmt::Display for $structure {
                fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                    f.write_str(self.dense_print().as_str())
                }
            }
        };
    }
}