Skip to main content

Module pprust

Module pprust 

Source

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use rustc_ast as ast; ๐Ÿ”’
use rustc_ast::token::Token; ๐Ÿ”’
use rustc_ast::token::TokenKind; ๐Ÿ”’
use rustc_ast::tokenstream::TokenStream; ๐Ÿ”’
use rustc_ast::tokenstream::TokenTree; ๐Ÿ”’
pub use state::AnnNode;
pub use state::Comments;
pub use state::PpAnn;
pub use state::PrintState;
pub use state::State;
pub use state::print_crate;
pub use state::print_crate_as_interface;

Modulesยง

state
AST pretty printing.

Functionsยง

assoc_item_to_string
attribute_to_string
bounds_to_string
crate_to_string_for_macros
Pretty prints a crate from its AST representation.
expr_to_string
foreign_item_to_string
impl_restriction_to_string
item_to_string
meta_list_item_to_string
mut_restriction_to_string
pat_to_string
Panics
path_segment_to_string
path_to_string
stmt_to_string
to_string
token_kind_to_string
Print the token kind precisely, without converting $crate into its respective crate name.
token_to_string
Print the token precisely, without converting $crate into its respective crate name.
tt_to_string
tts_to_string
ty_to_string
vis_to_string
where_bound_predicate_to_string