pub enum QuotedScalarStyle {
Double,
Single,
}Expand description
The quoting style of a manually quoted YAML scalar hosting a raw splice.
Variants§
Double
"…" — every \ must begin a YAML escape and every " be escaped.
Single
'…' — '' is the only escape, so every apostrophe must be doubled.
Implementations§
Source§impl QuotedScalarStyle
impl QuotedScalarStyle
Sourcepub fn safe_content_pattern(self) -> &'static str
pub fn safe_content_pattern(self) -> &'static str
Valid CONTENT of a scalar quoted in this style; raw text outside the grammar corrupts the manually quoted token.
Trait Implementations§
Source§impl Clone for QuotedScalarStyle
impl Clone for QuotedScalarStyle
Source§fn clone(&self) -> QuotedScalarStyle
fn clone(&self) -> QuotedScalarStyle
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 QuotedScalarStyle
Source§impl Debug for QuotedScalarStyle
impl Debug for QuotedScalarStyle
impl Eq for QuotedScalarStyle
Source§impl Hash for QuotedScalarStyle
impl Hash for QuotedScalarStyle
Source§impl Ord for QuotedScalarStyle
impl Ord for QuotedScalarStyle
Source§fn cmp(&self, other: &QuotedScalarStyle) -> Ordering
fn cmp(&self, other: &QuotedScalarStyle) -> 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 QuotedScalarStyle
impl PartialEq for QuotedScalarStyle
Source§impl PartialOrd for QuotedScalarStyle
impl PartialOrd for QuotedScalarStyle
impl StructuralPartialEq for QuotedScalarStyle
Auto Trait Implementations§
impl Freeze for QuotedScalarStyle
impl RefUnwindSafe for QuotedScalarStyle
impl Send for QuotedScalarStyle
impl Sync for QuotedScalarStyle
impl Unpin for QuotedScalarStyle
impl UnsafeUnpin for QuotedScalarStyle
impl UnwindSafe for QuotedScalarStyle
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