Skip to main content

crate_to_string_for_macros

Function crate_to_string_for_macros 

Source
pub fn crate_to_string_for_macros(krate: &Crate) -> String
Expand description

Pretty prints a crate from its AST representation.

As the source text is not available, regular (non-doc) comments are not preserved. Doc-comments can survive since they are represented in the AST. To pretty-print a crate including its comments, use print_crate instead.