Function sway_ir::printer::to_string

source ·
pub fn to_string(context: &Context<'_>) -> String
Expand description

Pretty-print a whole Context to a string.

The ouput from this function must always be suitable for crate::parser::parse.