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

source§

fn clone(&self) -> _YR_COMPILER

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for _YR_COMPILER

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for _YR_COMPILER

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.