Function dprint_core::formatting::format
source · pub fn format(
get_print_items: impl FnOnce() -> PrintItems,
options: PrintOptions
) -> String
Expand description
Function to create the provided print items and print them out as a string.
Note: It is unsafe to use the print items created within get_print_items
outside of the closure, since they are created with a thread local allocator
that is reset once this function returns.