pub enum ScalarStyle {
Plain,
SingleQuoted,
DoubleQuoted,
Literal,
Folded,
}
Expand description
The style as which the scalar was written in the YAML document.
Variants§
Plain
A YAML plain scalar.
SingleQuoted
A YAML single quoted scalar.
DoubleQuoted
A YAML double quoted scalar.
Literal
A YAML literal block (|
block).
See 8.1.2. In literal blocks, any indented character is content, including white space characters. There is no way to escape characters, nor to break a long line.
Folded
A YAML folded block (>
block).
See 8.1.3. In folded blocks, any indented character is content, including white space characters. There is no way to escape characters. Content is subject to line folding, allowing breaking long lines.
Trait Implementations§
Source§impl Clone for ScalarStyle
impl Clone for ScalarStyle
Source§fn clone(&self) -> ScalarStyle
fn clone(&self) -> ScalarStyle
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 ScalarStyle
impl Debug for ScalarStyle
Source§impl Hash for ScalarStyle
impl Hash for ScalarStyle
Source§impl Ord for ScalarStyle
impl Ord for ScalarStyle
Source§fn cmp(&self, other: &ScalarStyle) -> Ordering
fn cmp(&self, other: &ScalarStyle) -> Ordering
1.21.0 · 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 ScalarStyle
impl PartialEq for ScalarStyle
Source§impl PartialOrd for ScalarStyle
impl PartialOrd for ScalarStyle
impl Copy for ScalarStyle
impl Eq for ScalarStyle
impl StructuralPartialEq for ScalarStyle
Auto Trait Implementations§
impl Freeze for ScalarStyle
impl RefUnwindSafe for ScalarStyle
impl Send for ScalarStyle
impl Sync for ScalarStyle
impl Unpin for ScalarStyle
impl UnwindSafe for ScalarStyle
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