Trait sway_ir::pretty::DebugWithContext
source · pub trait DebugWithContext {
// Required method
fn fmt_with_context(
&self,
formatter: &mut Formatter<'_>,
context: &Context<'_>
) -> Result;
// Provided method
fn with_context<'a, 'c, 'eng>(
&'a self,
context: &'c Context<'eng>
) -> WithContext<'a, 'c, 'eng, Self> { ... }
}
Required Methods§
fn fmt_with_context( &self, formatter: &mut Formatter<'_>, context: &Context<'_> ) -> Result
Provided Methods§
fn with_context<'a, 'c, 'eng>( &'a self, context: &'c Context<'eng> ) -> WithContext<'a, 'c, 'eng, Self>
Object Safety§
This trait is not object safe.