pub enum CompileErrorLevel {
Error,
Warning,
}Expand description
The level of an error while parsing a rule file.
Variants§
Implementations§
Source§impl CompileErrorLevel
impl CompileErrorLevel
Sourcepub fn from_code(code: i32) -> CompileErrorLevel
pub fn from_code(code: i32) -> CompileErrorLevel
Sourcepub fn try_from_code(code: i32) -> Result<CompileErrorLevel, i32>
pub fn try_from_code(code: i32) -> Result<CompileErrorLevel, i32>
Convert from an i32 error code.
Returns Err if the code is not a valide value.
Trait Implementations§
Source§impl Clone for CompileErrorLevel
impl Clone for CompileErrorLevel
Source§fn clone(&self) -> CompileErrorLevel
fn clone(&self) -> CompileErrorLevel
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 CompileErrorLevel
impl Debug for CompileErrorLevel
Source§impl PartialEq for CompileErrorLevel
impl PartialEq for CompileErrorLevel
impl Copy for CompileErrorLevel
impl Eq for CompileErrorLevel
impl StructuralPartialEq for CompileErrorLevel
Auto Trait Implementations§
impl Freeze for CompileErrorLevel
impl RefUnwindSafe for CompileErrorLevel
impl Send for CompileErrorLevel
impl Sync for CompileErrorLevel
impl Unpin for CompileErrorLevel
impl UnwindSafe for CompileErrorLevel
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