#[repr(u32)]
#[non_exhaustive]
pub enum yaml_scalar_style_t {
YAML_ANY_SCALAR_STYLE,
YAML_PLAIN_SCALAR_STYLE,
YAML_SINGLE_QUOTED_SCALAR_STYLE,
YAML_DOUBLE_QUOTED_SCALAR_STYLE,
YAML_LITERAL_SCALAR_STYLE,
YAML_FOLDED_SCALAR_STYLE,
}
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.
YAML_ANY_SCALAR_STYLE
Let the emitter choose the style.
YAML_PLAIN_SCALAR_STYLE
The plain scalar style.
YAML_SINGLE_QUOTED_SCALAR_STYLE
The single-quoted scalar style.
YAML_DOUBLE_QUOTED_SCALAR_STYLE
The double-quoted scalar style.
YAML_LITERAL_SCALAR_STYLE
The literal scalar style.
YAML_FOLDED_SCALAR_STYLE
The folded scalar style.
Trait Implementations§
source§impl Clone for yaml_scalar_style_t
impl Clone for yaml_scalar_style_t
source§fn clone(&self) -> yaml_scalar_style_t
fn clone(&self) -> yaml_scalar_style_t
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 yaml_scalar_style_t
impl Debug for yaml_scalar_style_t
source§impl Hash for yaml_scalar_style_t
impl Hash for yaml_scalar_style_t
source§impl Ord for yaml_scalar_style_t
impl Ord for yaml_scalar_style_t
source§fn cmp(&self, other: &yaml_scalar_style_t) -> Ordering
fn cmp(&self, other: &yaml_scalar_style_t) -> 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<yaml_scalar_style_t> for yaml_scalar_style_t
impl PartialEq<yaml_scalar_style_t> for yaml_scalar_style_t
source§fn eq(&self, other: &yaml_scalar_style_t) -> bool
fn eq(&self, other: &yaml_scalar_style_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<yaml_scalar_style_t> for yaml_scalar_style_t
impl PartialOrd<yaml_scalar_style_t> for yaml_scalar_style_t
source§fn partial_cmp(&self, other: &yaml_scalar_style_t) -> Option<Ordering>
fn partial_cmp(&self, other: &yaml_scalar_style_t) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more