Enum libyml::yaml::YamlScalarStyleT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlScalarStyleT {
YamlAnyScalarStyle = 0,
YamlPlainScalarStyle = 1,
YamlSingleQuotedScalarStyle = 2,
YamlDoubleQuotedScalarStyle = 3,
YamlLiteralScalarStyle = 4,
YamlFoldedScalarStyle = 5,
}
Expand description
Scalar styles.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
YamlAnyScalarStyle = 0
Let the emitter choose the style.
YamlPlainScalarStyle = 1
The plain scalar style.
YamlSingleQuotedScalarStyle = 2
The single-quoted scalar style.
YamlDoubleQuotedScalarStyle = 3
The double-quoted scalar style.
YamlLiteralScalarStyle = 4
The literal scalar style.
YamlFoldedScalarStyle = 5
The folded scalar style.
Trait Implementations§
source§impl Clone for YamlScalarStyleT
impl Clone for YamlScalarStyleT
source§fn clone(&self) -> YamlScalarStyleT
fn clone(&self) -> YamlScalarStyleT
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 YamlScalarStyleT
impl Debug for YamlScalarStyleT
source§impl Default for YamlScalarStyleT
impl Default for YamlScalarStyleT
source§impl Hash for YamlScalarStyleT
impl Hash for YamlScalarStyleT
source§impl Ord for YamlScalarStyleT
impl Ord for YamlScalarStyleT
source§fn cmp(&self, other: &YamlScalarStyleT) -> Ordering
fn cmp(&self, other: &YamlScalarStyleT) -> 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 YamlScalarStyleT
impl PartialEq for YamlScalarStyleT
source§impl PartialOrd for YamlScalarStyleT
impl PartialOrd for YamlScalarStyleT
impl Copy for YamlScalarStyleT
impl Eq for YamlScalarStyleT
impl StructuralPartialEq for YamlScalarStyleT
Auto Trait Implementations§
impl Freeze for YamlScalarStyleT
impl RefUnwindSafe for YamlScalarStyleT
impl Send for YamlScalarStyleT
impl Sync for YamlScalarStyleT
impl Unpin for YamlScalarStyleT
impl UnwindSafe for YamlScalarStyleT
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)