pub enum ArrayStyle {
Inline,
Header,
}Expand description
How a TOML array is spelled in source text.
TOML distinguishes a literal array from an array of tables built with
repeated [[section]] headers. Read the current style with
Array::style and pin a new choice with Array::set_style.
inline = [1, 2, 3] # Inline
[[items]] # Header (array of tables)
name = "first"
[[items]]
name = "second"Variants§
Inline
A literal array written with brackets, such as [1, 2, 3].
Header
An array of tables written with repeated [[section]] headers.
Trait Implementations§
Source§impl Clone for ArrayStyle
impl Clone for ArrayStyle
Source§fn clone(&self) -> ArrayStyle
fn clone(&self) -> ArrayStyle
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 ArrayStyle
impl Debug for ArrayStyle
Source§impl PartialEq for ArrayStyle
impl PartialEq for ArrayStyle
impl Copy for ArrayStyle
impl Eq for ArrayStyle
impl StructuralPartialEq for ArrayStyle
Auto Trait Implementations§
impl Freeze for ArrayStyle
impl RefUnwindSafe for ArrayStyle
impl Send for ArrayStyle
impl Sync for ArrayStyle
impl Unpin for ArrayStyle
impl UnsafeUnpin for ArrayStyle
impl UnwindSafe for ArrayStyle
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