pub trait ForDebugWithTypes: Sized {
// Provided method
fn for_debug(
self,
types: &UniqueArena<Type>,
) -> DiagnosticDebug<(Self, &UniqueArena<Type>)> { ... }
}
Provided Methods§
Sourcefn for_debug(
self,
types: &UniqueArena<Type>,
) -> DiagnosticDebug<(Self, &UniqueArena<Type>)>
fn for_debug( self, types: &UniqueArena<Type>, ) -> DiagnosticDebug<(Self, &UniqueArena<Type>)>
Format this type using core::fmt::Debug
.
Given an arena to look up type handles in, return a value that
implements the core::fmt::Debug
trait by displaying self
in a language-appropriate way. For example:
log::debug!("My type: {:?}", handle.for_debug(&types));
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.