Enum libyaml::SequenceStyle
source · [−]#[repr(u8)]
pub enum SequenceStyle {
Block,
Flow,
}
Expand description
Sequence style.
Variants
Block
Block sequence style.
Flow
Flow sequence style.
Implementations
sourceimpl SequenceStyle
impl SequenceStyle
sourcepub fn from_raw(raw: yaml_sequence_style_t) -> Option<Self>
pub fn from_raw(raw: yaml_sequence_style_t) -> Option<Self>
Convert from yaml_sequence_style_t
; YAML_ANY_SEQUENCE_STYLE
becomes
None
.
sourcepub fn into_raw(self) -> yaml_sequence_style_t
pub fn into_raw(self) -> yaml_sequence_style_t
Convert to yaml_sequence_style_t
.
sourcepub fn option_into_raw(value: Option<Self>) -> yaml_sequence_style_t
pub fn option_into_raw(value: Option<Self>) -> yaml_sequence_style_t
Convert to yaml_sequence_style_t
; None
becomes
YAML_ANY_SEQUENCE_STYLE
.
Trait Implementations
sourceimpl Clone for SequenceStyle
impl Clone for SequenceStyle
sourcefn clone(&self) -> SequenceStyle
fn clone(&self) -> SequenceStyle
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 Debug for SequenceStyle
impl Debug for SequenceStyle
sourceimpl Hash for SequenceStyle
impl Hash for SequenceStyle
sourceimpl Ord for SequenceStyle
impl Ord for SequenceStyle
sourcefn cmp(&self, other: &SequenceStyle) -> Ordering
fn cmp(&self, other: &SequenceStyle) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SequenceStyle> for SequenceStyle
impl PartialEq<SequenceStyle> for SequenceStyle
sourceimpl PartialOrd<SequenceStyle> for SequenceStyle
impl PartialOrd<SequenceStyle> for SequenceStyle
sourcefn partial_cmp(&self, other: &SequenceStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &SequenceStyle) -> 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 SequenceStyle
impl Eq for SequenceStyle
impl StructuralEq for SequenceStyle
impl StructuralPartialEq for SequenceStyle
Auto Trait Implementations
impl RefUnwindSafe for SequenceStyle
impl Send for SequenceStyle
impl Sync for SequenceStyle
impl Unpin for SequenceStyle
impl UnwindSafe for SequenceStyle
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