Enum boreal_parser::YaraFileComponent
source · pub enum YaraFileComponent {
Rule(Box<Rule>),
Import(Import),
Include(Include),
}Expand description
A top-level component of a Yara file.
Variants§
Rule(Box<Rule>)
A Yara rule
Import(Import)
A module import
Include(Include)
An include of another file
Trait Implementations§
source§impl Clone for YaraFileComponent
impl Clone for YaraFileComponent
source§fn clone(&self) -> YaraFileComponent
fn clone(&self) -> YaraFileComponent
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 YaraFileComponent
impl Debug for YaraFileComponent
source§impl PartialEq<YaraFileComponent> for YaraFileComponent
impl PartialEq<YaraFileComponent> for YaraFileComponent
source§fn eq(&self, other: &YaraFileComponent) -> bool
fn eq(&self, other: &YaraFileComponent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.