pub fn format_mode(buf: &[u8], indent: &str, mode: FormatMode) -> Result<String>
Format with a layout mode.