rustc_data_structures

Function make_display

Source
pub fn make_display(f: impl Fn(&mut Formatter<'_>) -> Result) -> impl Display
Expand description

Turns a closure that takes an &mut Formatter into something that can be display-formatted.