pub enum LayoutStyle {
Auto,
Passthrough,
Section,
Nested,
Binding,
SectionBinding,
SectionRootBinding,
}Expand description
Preferred layout style for a document path.
Variants§
Auto
Automatically determine the best representation.
Passthrough
Pass through; emit children at the current level with the path prefix.
Section
Create a new section (@ a.b.c).
Nested
Create a nested section (@ a.b.c { ... }).
Binding
Bind value (a.b.c = value).
SectionBinding
Bind a block (a.b.c { ... }).
SectionRootBinding
Section with root value binding (@ a.b.c = value).
Trait Implementations§
Source§impl Clone for LayoutStyle
impl Clone for LayoutStyle
Source§fn clone(&self) -> LayoutStyle
fn clone(&self) -> LayoutStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutStyle
impl Debug for LayoutStyle
Source§impl Default for LayoutStyle
impl Default for LayoutStyle
Source§fn default() -> LayoutStyle
fn default() -> LayoutStyle
Returns the “default value” for a type. Read more
Source§impl FromEure<'_> for LayoutStyle
impl FromEure<'_> for LayoutStyle
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Source§impl Hash for LayoutStyle
impl Hash for LayoutStyle
Source§impl PartialEq for LayoutStyle
impl PartialEq for LayoutStyle
impl Copy for LayoutStyle
impl Eq for LayoutStyle
impl StructuralPartialEq for LayoutStyle
Auto Trait Implementations§
impl Freeze for LayoutStyle
impl RefUnwindSafe for LayoutStyle
impl Send for LayoutStyle
impl Sync for LayoutStyle
impl Unpin for LayoutStyle
impl UnsafeUnpin for LayoutStyle
impl UnwindSafe for LayoutStyle
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.