Skip to main content

TargetGenCtx

Trait TargetGenCtx 

Source
pub trait TargetGenCtx {
    // Required method
    fn register_expression(&mut self, format: &str) -> Result<(), ()>;
}
Expand description

Represents context provided to an operation during target expression generation.

Required Methods§

Source

fn register_expression(&mut self, format: &str) -> Result<(), ()>

Register a target expression for the op being lowered. The format string is opaque to the trait - backends interpret it per their own emit conventions.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§