#[repr(u8)]pub enum MappingStyle {
Block = 1,
Flow = 2,
}Expand description
Mapping style.
Variants§
Implementations§
Source§impl MappingStyle
impl MappingStyle
Sourcepub fn from_raw(raw: yaml_mapping_style_t) -> Option<Self>
pub fn from_raw(raw: yaml_mapping_style_t) -> Option<Self>
Convert from yaml_mapping_style_t; YAML_ANY_MAPPING_STYLE becomes
None.
Sourcepub fn into_raw(self) -> yaml_mapping_style_t
pub fn into_raw(self) -> yaml_mapping_style_t
Convert to yaml_mapping_style_t.
Sourcepub fn option_into_raw(value: Option<Self>) -> yaml_mapping_style_t
pub fn option_into_raw(value: Option<Self>) -> yaml_mapping_style_t
Convert to yaml_mapping_style_t; None becomes
YAML_ANY_MAPPING_STYLE.
Trait Implementations§
Source§impl Clone for MappingStyle
impl Clone for MappingStyle
Source§fn clone(&self) -> MappingStyle
fn clone(&self) -> MappingStyle
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 MappingStyle
impl Debug for MappingStyle
Source§impl Hash for MappingStyle
impl Hash for MappingStyle
Source§impl Ord for MappingStyle
impl Ord for MappingStyle
Source§fn cmp(&self, other: &MappingStyle) -> Ordering
fn cmp(&self, other: &MappingStyle) -> 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 MappingStyle
impl PartialEq for MappingStyle
Source§impl PartialOrd for MappingStyle
impl PartialOrd for MappingStyle
impl Copy for MappingStyle
impl Eq for MappingStyle
impl StructuralPartialEq for MappingStyle
Auto Trait Implementations§
impl Freeze for MappingStyle
impl RefUnwindSafe for MappingStyle
impl Send for MappingStyle
impl Sync for MappingStyle
impl Unpin for MappingStyle
impl UnwindSafe for MappingStyle
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