pub enum Document {
Empty,
Line,
String(String),
With {
inner: Rc<Document>,
config: Config,
},
Cons {
left: Rc<Document>,
right: Rc<Document>,
},
Nest {
inner: Rc<Document>,
indent: Indent,
when: When,
},
Break {
value: String,
mode: Break,
},
Group {
name: String,
inner: Rc<Document>,
mode: Group,
},
Fits {
inner: Rc<Document>,
mode: Fits,
},
Force(Rc<Document>),
Collapse(usize),
Style {
inner: Rc<Document>,
style: Style,
},
}
Fields of With
Fields of Cons
Fields of Nest
Fields of Break
Fields of Group
Fields of Fits
Fields of Style
Formats the value using the given formatter.
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more