1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


/// A macro to create a `String` from a format string.
#[macro_export]
macro_rules! indent_fmt {
    ($dst:expr, $($arg:tt)*) => {
        $dst.write_fmt($crate::format_args!($($arg)*))
    };
}

/// A macro to write to a `Formatter` from a format string.
#[macro_export]
macro_rules! indent_write {
    ($dst:expr, $($arg:tt)*) => {
        $dst.write_fmt($crate::format_args!($($arg)*))
    };
}