indentation 0.1.6

Indentation Formatter
Documentation
1
2
3
4
5
6
7
8
use core::fmt::Formatter;
use crate::IndentFormatter;

impl<'a, 'i> From<&'i mut Formatter<'a>> for IndentFormatter<'a, 'i> {
    fn from(f: &'i mut Formatter<'a>) -> Self {
        Self::new(f, "    ")
    }
}