pub trait IRPrintable {
// Required method
fn fmt(&self, ctx: &mut IRPrinterCtx<'_, '_>) -> Result;
// Provided method
fn depth(&self) -> usize { ... }
}Expand description
Trait defining the common behavior of printable IR objects.
Required Methods§
Sourcefn fmt(&self, ctx: &mut IRPrinterCtx<'_, '_>) -> Result
fn fmt(&self, ctx: &mut IRPrinterCtx<'_, '_>) -> Result
Format the IR object using the given context.