Enum boreal_parser::file::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 for YaraFileComponent
impl PartialEq 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 ==.impl StructuralPartialEq for YaraFileComponent
Auto Trait Implementations§
impl RefUnwindSafe for YaraFileComponent
impl Send for YaraFileComponent
impl Sync for YaraFileComponent
impl Unpin for YaraFileComponent
impl UnwindSafe for YaraFileComponent
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