pub enum TableStyle {
Implicit,
Dotted,
Header,
Inline,
}Expand description
How a TOML table is spelled in source text.
The same logical table can be written in four surface forms. Parsing
records which form produced each table, and emit consults it when
rendering. Read the current style with Table::style and pin a new
choice with Table::set_style.
[section] # Header
key = 1
inline = { x = 1 } # Inline
a.b.c = 1 # `a.b` is Dotted, `a` is ImplicitVariants§
Implicit
An intermediate parent the user never spelled out.
Writing [a.b] or a.b = 1 brings a into existence even though
the path only names b. Such parents are Implicit.
Dotted
A table defined by a dotted key path, for example a.b = 1.
Header
A table defined by an explicit [section] header.
Inline
A sealed inline table written with braces, such as { x = 1, y = 2 }.
Trait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
Source§fn clone(&self) -> TableStyle
fn clone(&self) -> TableStyle
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 TableStyle
impl Debug for TableStyle
Source§impl PartialEq for TableStyle
impl PartialEq for TableStyle
impl Copy for TableStyle
impl Eq for TableStyle
impl StructuralPartialEq for TableStyle
Auto Trait Implementations§
impl Freeze for TableStyle
impl RefUnwindSafe for TableStyle
impl Send for TableStyle
impl Sync for TableStyle
impl Unpin for TableStyle
impl UnsafeUnpin for TableStyle
impl UnwindSafe for TableStyle
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