#[non_exhaustive]#[repr(u32)]pub enum yaml_error_type_t {
YAML_NO_ERROR = 0,
YAML_MEMORY_ERROR = 1,
YAML_READER_ERROR = 2,
YAML_SCANNER_ERROR = 3,
YAML_PARSER_ERROR = 4,
YAML_COMPOSER_ERROR = 5,
YAML_WRITER_ERROR = 6,
YAML_EMITTER_ERROR = 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.
YAML_NO_ERROR = 0
No error is produced.
YAML_MEMORY_ERROR = 1
Cannot allocate or reallocate a block of memory.
YAML_READER_ERROR = 2
Cannot read or decode the input stream.
YAML_SCANNER_ERROR = 3
Cannot scan the input stream.
YAML_PARSER_ERROR = 4
Cannot parse the input stream.
YAML_COMPOSER_ERROR = 5
Cannot compose a YAML document.
YAML_WRITER_ERROR = 6
Cannot write to the output stream.
YAML_EMITTER_ERROR = 7
Cannot emit a YAML stream.
Trait Implementations§
source§impl Clone for yaml_error_type_t
impl Clone for yaml_error_type_t
source§fn clone(&self) -> yaml_error_type_t
fn clone(&self) -> yaml_error_type_t
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 yaml_error_type_t
impl Debug for yaml_error_type_t
source§impl Hash for yaml_error_type_t
impl Hash for yaml_error_type_t
source§impl Ord for yaml_error_type_t
impl Ord for yaml_error_type_t
source§fn cmp(&self, other: &yaml_error_type_t) -> Ordering
fn cmp(&self, other: &yaml_error_type_t) -> 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 yaml_error_type_t
impl PartialEq for yaml_error_type_t
source§fn eq(&self, other: &yaml_error_type_t) -> bool
fn eq(&self, other: &yaml_error_type_t) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for yaml_error_type_t
impl PartialOrd for yaml_error_type_t
source§fn partial_cmp(&self, other: &yaml_error_type_t) -> Option<Ordering>
fn partial_cmp(&self, other: &yaml_error_type_t) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for yaml_error_type_t
impl Eq for yaml_error_type_t
impl StructuralEq for yaml_error_type_t
impl StructuralPartialEq for yaml_error_type_t
Auto Trait Implementations§
impl RefUnwindSafe for yaml_error_type_t
impl Send for yaml_error_type_t
impl Sync for yaml_error_type_t
impl Unpin for yaml_error_type_t
impl UnwindSafe for yaml_error_type_t
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