[][src]Enum libyaml::MappingStyle

#[repr(u8)]
pub enum MappingStyle {
    Block,
    Flow,
}

Mapping style.

Variants

Block

Block sequence style.

Flow

Flow sequence style.

Methods

impl MappingStyle[src]

pub fn from_raw(raw: yaml_mapping_style_t) -> Option<Self>[src]

Convert from yaml_mapping_style_t; YAML_ANY_MAPPING_STYLE becomes None.

pub fn into_raw(self) -> yaml_mapping_style_t[src]

Convert to yaml_mapping_style_t.

pub fn option_into_raw(value: Option<Self>) -> yaml_mapping_style_t[src]

Convert to yaml_mapping_style_t; None becomes YAML_ANY_MAPPING_STYLE.

Trait Implementations

impl Clone for MappingStyle[src]

impl Copy for MappingStyle[src]

impl Eq for MappingStyle[src]

impl Ord for MappingStyle[src]

impl PartialEq<MappingStyle> for MappingStyle[src]

impl PartialOrd<MappingStyle> for MappingStyle[src]

impl Debug for MappingStyle[src]

impl Hash for MappingStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]