Skip to main content

ResolvedDebug

Trait ResolvedDebug 

Source
pub trait ResolvedDebug {
    // Required method
    fn show(&self, res: &Resolution<'_>) -> String;
}
Expand description

Context-aware formatting for resolved metadata values.

Unlike std::fmt::Display, implementations can use a crate::resolution::Resolution to resolve typed indices into human-readable names while formatting.

Required Methods§

Source

fn show(&self, res: &Resolution<'_>) -> String

Returns a display-oriented string using res as lookup context.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: ResolvedDebug> ResolvedDebug for Vec<Generic<'_, T>>

Source§

fn show(&self, _: &Resolution<'_>) -> String

Implementors§