expression

Pretty Debug

Alternate Debug requests a more readable representation from implementations that support it. Exact layout is not a stable serialization format. Expected stdout (not executed): true Common mistake: Comparing complete Debug text as a stable wire contract.

Formal Syntax & Structure

rust syntaxrust
{:#?}

Working Example

Example Snippetrust
fn main() {    let pair=(1,2);    let s=format!("{pair:#?}");    println!("{}", s.lines().count()>1);}
Rust Reference