pub enum StructureStyle {
Block,
Flow,
}Expand description
The notation style used for a YAML sequence or mapping.
StructureStyle::Block means block notation:
items:
- milk
- bread
mapping:
name: Ada
active: trueStructureStyle::Flow means flow notation:
items: [milk, bread]
mapping: {name: Ada, active: true}Variants§
Block
Block notation, such as - item sequences and key: value mappings.
Flow
Flow notation, such as [item] sequences and {key: value} mappings.
Trait Implementations§
Source§impl Clone for StructureStyle
impl Clone for StructureStyle
Source§fn clone(&self) -> StructureStyle
fn clone(&self) -> StructureStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructureStyle
impl Debug for StructureStyle
Source§impl Hash for StructureStyle
impl Hash for StructureStyle
Source§impl Ord for StructureStyle
impl Ord for StructureStyle
Source§fn cmp(&self, other: &StructureStyle) -> Ordering
fn cmp(&self, other: &StructureStyle) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StructureStyle
impl PartialEq for StructureStyle
Source§fn eq(&self, other: &StructureStyle) -> bool
fn eq(&self, other: &StructureStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StructureStyle
impl PartialOrd for StructureStyle
impl Copy for StructureStyle
impl Eq for StructureStyle
impl StructuralPartialEq for StructureStyle
Auto Trait Implementations§
impl Freeze for StructureStyle
impl RefUnwindSafe for StructureStyle
impl Send for StructureStyle
impl Sync for StructureStyle
impl Unpin for StructureStyle
impl UnsafeUnpin for StructureStyle
impl UnwindSafe for StructureStyle
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