pub struct RustIR {
pub mod_declarations: Vec<ModDeclaration>,
pub derive_macros: Vec<DeriveUsage>,
pub trait_implementations: Vec<TraitImpl>,
pub error_types: Vec<String>,
pub macro_calls: Vec<MacroCall>,
pub function_calls: Vec<FunctionCall>,
}Expand description
Rust-specific IR details.
Fields§
§mod_declarations: Vec<ModDeclaration>§derive_macros: Vec<DeriveUsage>§trait_implementations: Vec<TraitImpl>§error_types: Vec<String>§macro_calls: Vec<MacroCall>All macro invocations found in this file.
Populated by the Rust tree-sitter parser. Detectors use this to
produce call-site evidence (e.g. tracing::info! lines) instead of
pointing at import declarations.
function_calls: Vec<FunctionCall>Function and method call-sites found in this file.
Deduplicated by callee name — at most one example per unique callee.
Hard limit: 500 entries per file. Used by query_code_pattern to
return real call-site snippets alongside symbol definitions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RustIR
impl<'de> Deserialize<'de> for RustIR
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RustIR
impl RefUnwindSafe for RustIR
impl Send for RustIR
impl Sync for RustIR
impl Unpin for RustIR
impl UnsafeUnpin for RustIR
impl UnwindSafe for RustIR
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