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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.