#[non_exhaustive]#[repr(u32)]pub enum pm_error_level_t {
PM_ERROR_LEVEL_SYNTAX = 0,
PM_ERROR_LEVEL_ARGUMENT = 1,
PM_ERROR_LEVEL_LOAD = 2,
PM_ERROR_LEVEL_STACK = 3,
PM_ERROR_LEVEL_ENCODING_COMPATIBILITY = 4,
}Expand description
The levels of errors generated during parsing.
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.
PM_ERROR_LEVEL_SYNTAX = 0
For errors that should raise a syntax error.
PM_ERROR_LEVEL_ARGUMENT = 1
For errors that should raise an argument error.
PM_ERROR_LEVEL_LOAD = 2
For errors that should raise a load error.
PM_ERROR_LEVEL_STACK = 3
For errors that should raise a system stack error. These mean that the parser ran out of the stack it was given, not that the source is invalid, so the same source may parse with more stack.
PM_ERROR_LEVEL_ENCODING_COMPATIBILITY = 4
For errors that should raise an encoding compatibility error.
Trait Implementations§
Source§impl Clone for pm_error_level_t
impl Clone for pm_error_level_t
impl Copy for pm_error_level_t
Source§impl Debug for pm_error_level_t
impl Debug for pm_error_level_t
impl Eq for pm_error_level_t
Source§impl Hash for pm_error_level_t
impl Hash for pm_error_level_t
Source§impl PartialEq for pm_error_level_t
impl PartialEq for pm_error_level_t
impl StructuralPartialEq for pm_error_level_t
Auto Trait Implementations§
impl Freeze for pm_error_level_t
impl RefUnwindSafe for pm_error_level_t
impl Send for pm_error_level_t
impl Sync for pm_error_level_t
impl Unpin for pm_error_level_t
impl UnsafeUnpin for pm_error_level_t
impl UnwindSafe for pm_error_level_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