Skip to main content

ForDebugWithTypes

Trait ForDebugWithTypes 

Source
pub trait ForDebugWithTypes: Sized {
    // Provided method
    fn for_debug(
        self,
        types: &UniqueArena<Type>,
    ) -> DiagnosticDebug<(Self, &UniqueArena<Type>)> { ... }
}

Provided Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl ForDebugWithTypes for &[Rule]

Implementors§