Skip to main content

StmtToText

Function StmtToText 

Source
fn StmtToText(Stmt: &Stmt) -> String
Expand description

Render a single syn::Stmt to its canonical text representation by wrapping it in a dummy function body and extracting the inner line(s). The wrapper indentation (one tab or 4 spaces from prettyplease) is stripped so the result is indentation-relative.