#[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
sourceimpl Clone for yaml_scalar_style_t
impl Clone for yaml_scalar_style_t
sourcefn clone(&self) -> yaml_scalar_style_t
fn clone(&self) -> yaml_scalar_style_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Hash for yaml_scalar_style_t
impl Hash for yaml_scalar_style_t
sourceimpl Ord for yaml_scalar_style_t
impl Ord for yaml_scalar_style_t
sourceimpl PartialOrd<yaml_scalar_style_t> for yaml_scalar_style_t
impl PartialOrd<yaml_scalar_style_t> for yaml_scalar_style_t
sourcefn partial_cmp(&self, other: &yaml_scalar_style_t) -> Option<Ordering>
fn partial_cmp(&self, other: &yaml_scalar_style_t) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for yaml_scalar_style_t
impl Eq for yaml_scalar_style_t
impl StructuralEq for yaml_scalar_style_t
impl StructuralPartialEq for yaml_scalar_style_t
Auto Trait Implementations
impl RefUnwindSafe for yaml_scalar_style_t
impl Send for yaml_scalar_style_t
impl Sync for yaml_scalar_style_t
impl Unpin for yaml_scalar_style_t
impl UnwindSafe for yaml_scalar_style_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more