#[repr(u8)]pub enum ScalarStyle {
Plain = 1,
SingleQuoted = 2,
DoubleQuoted = 3,
Literal = 4,
Folded = 5,
}Expand description
Scalar style.
Variants§
Plain = 1
Plain scalar style.
SingleQuoted = 2
Single-quoted scalar style.
DoubleQuoted = 3
Double-quoted scalar style.
Literal = 4
Literal scalar style.
Folded = 5
Folded scalar style.
Implementations§
Source§impl ScalarStyle
impl ScalarStyle
Sourcepub fn from_raw(raw: yaml_scalar_style_t) -> Option<Self>
pub fn from_raw(raw: yaml_scalar_style_t) -> Option<Self>
Convert from yaml_scalar_style_t; YAML_ANY_SCALAR_STYLE becomes
None.
Sourcepub fn into_raw(self) -> yaml_scalar_style_t
pub fn into_raw(self) -> yaml_scalar_style_t
Convert to yaml_scalar_style_t.
Sourcepub fn option_into_raw(value: Option<Self>) -> yaml_scalar_style_t
pub fn option_into_raw(value: Option<Self>) -> yaml_scalar_style_t
Convert to yaml_scalar_style_t; None becomes
YAML_ANY_SCALAR_STYLE.
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 · 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 ScalarStyle
impl Debug for ScalarStyle
Source§impl Hash for ScalarStyle
impl Hash for ScalarStyle
Source§impl Ord for ScalarStyle
impl Ord for ScalarStyle
Source§fn cmp(&self, other: &ScalarStyle) -> Ordering
fn cmp(&self, other: &ScalarStyle) -> 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 ScalarStyle
impl PartialEq for ScalarStyle
Source§impl PartialOrd for ScalarStyle
impl PartialOrd for ScalarStyle
impl Copy for ScalarStyle
impl Eq 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 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