boilerplate 1.2.1

Minimal compile-time Rust template engine
Documentation
1
2
3
4
5
6
7
8
use super::*;

pub trait Format {
  /// Write `self` to `f`, escaping if necessary, indenting continuation lines
  /// by `indent`, and dropping a single trailing newline from the output if
  /// `trim` is true.
  fn format(&self, f: &mut fmt::Formatter, indent: &'static str, trim: bool) -> fmt::Result;
}