pub type LayoutStrategy = Form;Expand description
Single-node layout strategy: a Form taken from the seven-variant
taxonomy in eure_document::plan.
For arrays the same Form is interpreted as the element form of a
ArrayForm::PerElement (except Inline, which maps to
ArrayForm::Inline, and Flatten, which is rejected).
Aliased Type§
pub enum LayoutStrategy {
Inline,
BindingBlock,
BindingValueBlock,
Section,
SectionBlock,
SectionValueBlock,
Flatten,
}Variants§
Inline
Pattern #1: path = value.
BindingBlock
Pattern #2: path { ... }.
BindingValueBlock
Pattern #3: path { = value ... }.
Section
Pattern #4: @ path with items.
SectionBlock
Pattern #5: @ path { ... }.
SectionValueBlock
Pattern #6: @ path { = value ... }.
Flatten
No self-emission. Children are hoisted into the parent.