Struct yara_sys::_YR_COMPILER
source · #[repr(C)]pub struct _YR_COMPILER {Show 39 fields
pub arena: *mut YR_ARENA,
pub current_rule_idx: u32,
pub next_rule_idx: u32,
pub current_string_idx: u32,
pub current_namespace_idx: u32,
pub current_meta_idx: u32,
pub rules: *mut YR_RULES,
pub errors: c_int,
pub current_line: c_int,
pub last_error: c_int,
pub last_error_line: c_int,
pub strict_escape: bool,
pub error_recovery: jmp_buf,
pub automaton: *mut YR_AC_AUTOMATON,
pub rules_table: *mut YR_HASH_TABLE,
pub objects_table: *mut YR_HASH_TABLE,
pub strings_table: *mut YR_HASH_TABLE,
pub wildcard_identifiers_table: *mut YR_HASH_TABLE,
pub sz_table: *mut YR_HASH_TABLE,
pub fixup_stack_head: *mut YR_FIXUP,
pub num_namespaces: c_int,
pub loop_: [YR_LOOP_CONTEXT; 4],
pub loop_index: c_int,
pub loop_for_of_var_index: c_int,
pub file_name_stack: [*mut c_char; 16],
pub file_name_stack_ptr: c_int,
pub last_error_extra_info: [c_char; 256],
pub lex_buf: [c_char; 8192],
pub lex_buf_ptr: *mut c_char,
pub lex_buf_len: c_ushort,
pub include_base_dir: [c_char; 1024],
pub user_data: *mut c_void,
pub incl_clbk_user_data: *mut c_void,
pub re_ast_clbk_user_data: *mut c_void,
pub callback: YR_COMPILER_CALLBACK_FUNC,
pub include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC,
pub include_free: YR_COMPILER_INCLUDE_FREE_FUNC,
pub re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC,
pub atoms_config: YR_ATOMS_CONFIG,
}
Fields§
§arena: *mut YR_ARENA
§current_rule_idx: u32
§next_rule_idx: u32
§current_string_idx: u32
§current_namespace_idx: u32
§current_meta_idx: u32
§rules: *mut YR_RULES
§errors: c_int
§current_line: c_int
§last_error: c_int
§last_error_line: c_int
§strict_escape: bool
§error_recovery: jmp_buf
§automaton: *mut YR_AC_AUTOMATON
§rules_table: *mut YR_HASH_TABLE
§objects_table: *mut YR_HASH_TABLE
§strings_table: *mut YR_HASH_TABLE
§wildcard_identifiers_table: *mut YR_HASH_TABLE
§sz_table: *mut YR_HASH_TABLE
§fixup_stack_head: *mut YR_FIXUP
§num_namespaces: c_int
§loop_: [YR_LOOP_CONTEXT; 4]
§loop_index: c_int
§loop_for_of_var_index: c_int
§file_name_stack: [*mut c_char; 16]
§file_name_stack_ptr: c_int
§last_error_extra_info: [c_char; 256]
§lex_buf: [c_char; 8192]
§lex_buf_ptr: *mut c_char
§lex_buf_len: c_ushort
§include_base_dir: [c_char; 1024]
§user_data: *mut c_void
§incl_clbk_user_data: *mut c_void
§re_ast_clbk_user_data: *mut c_void
§callback: YR_COMPILER_CALLBACK_FUNC
§include_callback: YR_COMPILER_INCLUDE_CALLBACK_FUNC
§include_free: YR_COMPILER_INCLUDE_FREE_FUNC
§re_ast_callback: YR_COMPILER_RE_AST_CALLBACK_FUNC
§atoms_config: YR_ATOMS_CONFIG
Trait Implementations§
source§impl Clone for _YR_COMPILER
impl Clone for _YR_COMPILER
source§fn clone(&self) -> _YR_COMPILER
fn clone(&self) -> _YR_COMPILER
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 _YR_COMPILER
impl Debug for _YR_COMPILER
impl Copy for _YR_COMPILER
Auto Trait Implementations§
impl RefUnwindSafe for _YR_COMPILER
impl !Send for _YR_COMPILER
impl !Sync for _YR_COMPILER
impl Unpin for _YR_COMPILER
impl UnwindSafe for _YR_COMPILER
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