pub enum Form {
Inline,
BindingBlock,
BindingValueBlock,
Section,
SectionBlock,
SectionValueBlock,
Flatten,
}Expand description
One of the seven semantic shapes a non-Array node can take.
Six correspond to the grammar patterns documented in source.rs;
Flatten hoists children into the parent context without emitting the
node itself.
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.
Trait Implementations§
impl Copy for Form
impl Eq for Form
impl StructuralPartialEq for Form
Auto Trait Implementations§
impl Freeze for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Form
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.