#[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,
}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.
Trait Implementations§
Source§impl Clone for pm_error_level_t
impl Clone for pm_error_level_t
Source§fn clone(&self) -> pm_error_level_t
fn clone(&self) -> pm_error_level_t
Returns a duplicate 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 pm_error_level_t
impl Debug 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 Copy for pm_error_level_t
impl Eq 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 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