Skip to main content

show_string

Function show_string 

Source
pub fn show_string<T: Showable>(value: &T) -> String
Expand description

Render any Showable value to a String using the SAME natural formatting as show — used by string interpolation holes so "{s}" matches Show s byte-for-byte, even for types (Sets, user structs) that implement Showable but not std::fmt::Display.