pub struct AstCompiler<'a> { /* private fields */ }Expand description
Unified AST compiler that performs DWARF queries and code generation in single pass
Implementations§
Source§impl<'a> AstCompiler<'a>
impl<'a> AstCompiler<'a>
pub fn new( process_analyzer: Option<&'a mut DwarfAnalyzer>, binary_path_hint: Option<String>, starting_trace_id: u32, compile_options: CompileOptions, ) -> Self
Sourcepub fn compile_program(
&mut self,
program: &Program,
pid: Option<u32>,
) -> Result<CompilationResult, CompileError>
pub fn compile_program( &mut self, program: &Program, pid: Option<u32>, ) -> Result<CompilationResult, CompileError>
Main entry point: compile AST with integrated DWARF queries and code generation
Auto Trait Implementations§
impl<'a> Freeze for AstCompiler<'a>
impl<'a> RefUnwindSafe for AstCompiler<'a>
impl<'a> Send for AstCompiler<'a>
impl<'a> Sync for AstCompiler<'a>
impl<'a> Unpin for AstCompiler<'a>
impl<'a> !UnwindSafe for AstCompiler<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more