Enum libyml::yaml::YamlBreakT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlBreakT {
YamlAnyBreak = 0,
YamlCrBreak = 1,
YamlLnBreak = 2,
YamlCrlnBreak = 3,
}
Expand description
Line break type.
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.
YamlAnyBreak = 0
Let the parser choose the break type.
YamlCrBreak = 1
Use CR for line breaks (Mac style).
YamlLnBreak = 2
Use LN for line breaks (Unix style).
YamlCrlnBreak = 3
Use CR LN for line breaks (DOS style).
Trait Implementations§
source§impl Clone for YamlBreakT
impl Clone for YamlBreakT
source§fn clone(&self) -> YamlBreakT
fn clone(&self) -> YamlBreakT
Returns a copy 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 YamlBreakT
impl Debug for YamlBreakT
source§impl Default for YamlBreakT
impl Default for YamlBreakT
source§impl Hash for YamlBreakT
impl Hash for YamlBreakT
source§impl Ord for YamlBreakT
impl Ord for YamlBreakT
source§fn cmp(&self, other: &YamlBreakT) -> Ordering
fn cmp(&self, other: &YamlBreakT) -> 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 YamlBreakT
impl PartialEq for YamlBreakT
source§impl PartialOrd for YamlBreakT
impl PartialOrd for YamlBreakT
impl Copy for YamlBreakT
impl Eq for YamlBreakT
impl StructuralPartialEq for YamlBreakT
Auto Trait Implementations§
impl Freeze for YamlBreakT
impl RefUnwindSafe for YamlBreakT
impl Send for YamlBreakT
impl Sync for YamlBreakT
impl Unpin for YamlBreakT
impl UnwindSafe for YamlBreakT
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)