sway_ir::printer

Function to_string

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

Pretty-print a whole Context to a string.

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