pub enum BindingStyle {
Auto,
Passthrough,
Section,
Nested,
Binding,
SectionBinding,
SectionRootBinding,
}Expand description
How to represent document paths in formatted output
Spec: lines 263-296
@ $types.binding-style
$variant: union
variants { auto, passthrough, section, nested, binding, section-binding, section-root-binding }Variants§
Auto
Automatically determine the best representation
Passthrough
Pass through; defer to subsequent keys
Section
Create a new section (@ a.b.c)
Nested
Create a nested section (@ a.b.c { … })
Binding
Bind value (a.b.c = value)
SectionBinding
Section with block (a.b.c { … })
SectionRootBinding
Section with root binding (@ a.b.c = value)
Trait Implementations§
Source§impl Clone for BindingStyle
impl Clone for BindingStyle
Source§fn clone(&self) -> BindingStyle
fn clone(&self) -> BindingStyle
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 BindingStyle
impl Debug for BindingStyle
Source§impl Default for BindingStyle
impl Default for BindingStyle
Source§fn default() -> BindingStyle
fn default() -> BindingStyle
Returns the “default value” for a type. Read more
Source§impl<'doc> FromEure<'doc> for BindingStyle
impl<'doc> FromEure<'doc> for BindingStyle
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Source§impl PartialEq for BindingStyle
impl PartialEq for BindingStyle
impl Eq for BindingStyle
impl StructuralPartialEq for BindingStyle
Auto Trait Implementations§
impl Freeze for BindingStyle
impl RefUnwindSafe for BindingStyle
impl Send for BindingStyle
impl Sync for BindingStyle
impl Unpin for BindingStyle
impl UnwindSafe for BindingStyle
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.