Enum yara_sys::errors::CompileErrorLevel
source · [−]pub enum CompileErrorLevel {
Error,
Warning,
}
Expand description
The level of an error while parsing a rule file.
Variants
Error
Warning
Implementations
sourceimpl 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
sourceimpl Clone for CompileErrorLevel
impl Clone for CompileErrorLevel
sourcefn clone(&self) -> CompileErrorLevel
fn clone(&self) -> CompileErrorLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompileErrorLevel
impl Debug for CompileErrorLevel
impl Copy for CompileErrorLevel
impl Eq for CompileErrorLevel
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more