Enum yaml_rust2::scanner::TScalarStyle
source · pub enum TScalarStyle {
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).
Folded
A YAML folded block (>
block).
Trait Implementations§
source§impl Clone for TScalarStyle
impl Clone for TScalarStyle
source§fn clone(&self) -> TScalarStyle
fn clone(&self) -> TScalarStyle
Returns a copy 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 TScalarStyle
impl Debug for TScalarStyle
source§impl PartialEq for TScalarStyle
impl PartialEq for TScalarStyle
source§fn eq(&self, other: &TScalarStyle) -> bool
fn eq(&self, other: &TScalarStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TScalarStyle
impl Eq for TScalarStyle
impl StructuralPartialEq for TScalarStyle
Auto Trait Implementations§
impl Freeze for TScalarStyle
impl RefUnwindSafe for TScalarStyle
impl Send for TScalarStyle
impl Sync for TScalarStyle
impl Unpin for TScalarStyle
impl UnwindSafe for TScalarStyle
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