pub enum YamlScalarStyle {
Plain,
SingleQuoted,
DoubleQuoted,
Literal,
Folded,
}Expand description
The lexical style of a scalar, detected from its raw source. (The CST does
not record style as a distinct kind — every style is a YAML_SCALAR node.)
Variants§
Trait Implementations§
Source§impl Clone for YamlScalarStyle
impl Clone for YamlScalarStyle
Source§fn clone(&self) -> YamlScalarStyle
fn clone(&self) -> YamlScalarStyle
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 moreimpl Copy for YamlScalarStyle
Source§impl Debug for YamlScalarStyle
impl Debug for YamlScalarStyle
impl Eq for YamlScalarStyle
Source§impl Hash for YamlScalarStyle
impl Hash for YamlScalarStyle
Source§impl PartialEq for YamlScalarStyle
impl PartialEq for YamlScalarStyle
Source§fn eq(&self, other: &YamlScalarStyle) -> bool
fn eq(&self, other: &YamlScalarStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlScalarStyle
Auto Trait Implementations§
impl Freeze for YamlScalarStyle
impl RefUnwindSafe for YamlScalarStyle
impl Send for YamlScalarStyle
impl Sync for YamlScalarStyle
impl Unpin for YamlScalarStyle
impl UnsafeUnpin for YamlScalarStyle
impl UnwindSafe for YamlScalarStyle
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