pub enum ScalarStyle {
Plain,
SingleQuoted,
DoubleQuoted,
Literal,
Folded,
}Expand description
How a scalar was written in the source document.
This is preserved because ASDF’s type resolution depends on it: a quoted
"123" is a string, an unquoted 123 is an integer.
Variants§
Plain
Unquoted.
SingleQuoted
Wrapped in '.
DoubleQuoted
Wrapped in ".
Literal
A | block scalar.
Folded
A > block scalar.
Implementations§
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 (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 ScalarStyle
Source§impl Debug for ScalarStyle
impl Debug for ScalarStyle
Source§impl Default for ScalarStyle
impl Default for ScalarStyle
Source§fn default() -> ScalarStyle
fn default() -> ScalarStyle
Returns the “default value” for a type. Read more
impl Eq for ScalarStyle
Source§impl PartialEq for ScalarStyle
impl PartialEq 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 UnsafeUnpin 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