Enum libyml::yaml::YamlErrorTypeT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlErrorTypeT {
YamlNoError = 0,
YamlMemoryError = 1,
YamlReaderError = 2,
YamlScannerError = 3,
YamlParserError = 4,
YamlComposerError = 5,
YamlWriterError = 6,
YamlEmitterError = 7,
}
Expand description
Many bad things could happen with the parser and emitter.
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.
YamlNoError = 0
No error is produced.
YamlMemoryError = 1
Cannot allocate or reallocate a block of memory.
YamlReaderError = 2
Cannot read or decode the input stream.
YamlScannerError = 3
Cannot scan the input stream.
YamlParserError = 4
Cannot parse the input stream.
YamlComposerError = 5
Cannot compose a YAML document.
YamlWriterError = 6
Cannot write to the output stream.
YamlEmitterError = 7
Cannot emit a YAML stream.
Trait Implementations§
source§impl Clone for YamlErrorTypeT
impl Clone for YamlErrorTypeT
source§fn clone(&self) -> YamlErrorTypeT
fn clone(&self) -> YamlErrorTypeT
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 YamlErrorTypeT
impl Debug for YamlErrorTypeT
source§impl Hash for YamlErrorTypeT
impl Hash for YamlErrorTypeT
source§impl Ord for YamlErrorTypeT
impl Ord for YamlErrorTypeT
source§fn cmp(&self, other: &YamlErrorTypeT) -> Ordering
fn cmp(&self, other: &YamlErrorTypeT) -> 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 YamlErrorTypeT
impl PartialEq for YamlErrorTypeT
source§impl PartialOrd for YamlErrorTypeT
impl PartialOrd for YamlErrorTypeT
impl Copy for YamlErrorTypeT
impl Eq for YamlErrorTypeT
impl StructuralPartialEq for YamlErrorTypeT
Auto Trait Implementations§
impl Freeze for YamlErrorTypeT
impl RefUnwindSafe for YamlErrorTypeT
impl Send for YamlErrorTypeT
impl Sync for YamlErrorTypeT
impl Unpin for YamlErrorTypeT
impl UnwindSafe for YamlErrorTypeT
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
)