Enum yara_sys::errors::CompileErrorLevel
source · 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 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 CompileErrorLevel
impl Debug for CompileErrorLevel
source§impl PartialEq for CompileErrorLevel
impl PartialEq for CompileErrorLevel
source§fn eq(&self, other: &CompileErrorLevel) -> bool
fn eq(&self, other: &CompileErrorLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompileErrorLevel
impl Eq for CompileErrorLevel
impl StructuralPartialEq for CompileErrorLevel
Auto Trait Implementations§
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