Module fmt

Module fmt 

Source

ModulesΒ§

pm2_send πŸ”’
proc_macro2 types are not send, even when compiled outside of a proc-macro crate this mod converts the token tree to a minimal Send model that only retains the info needed to implement the custom formatting

StructsΒ§

FmtArgs
FmtFragRequest πŸ”’
FmtFragServer πŸ”’
rustfmt does not provide a crate and does not implement a server. It only operates in one-shot calls and it is slow.
FmtFragServerData πŸ”’
FmtHistory πŸ”’

ConstantsΒ§

FMT_VERSION πŸ”’
Bump this for every change that can affect format result.

StaticsΒ§

SHOW_RUSTFMT_ERRORS πŸ”’

FunctionsΒ§

custom_fmt_docs πŸ”’
custom_fmt_md πŸ”’
Applies rustfmt and custom format for all Rust code blocks in the Markdown file
custom_fmt_rs πŸ”’
Applies custom format for all macro bodies in file, if changed writes the file and returns the file path for reformat.
replace_bitflags πŸ”’
replace_command πŸ”’
replace_event_args πŸ”’
replace_event_property πŸ”’
replace_expr_var πŸ”’
replace_simple_ident_list πŸ”’
wrap simple list of idents
replace_static_ref πŸ”’
replace_struct_like πŸ”’
replace_when_var πŸ”’
replace_widget πŸ”’
Escape widget macro syntax
replace_widget_impl πŸ”’
run
rustfmt_files πŸ”’
rustfmt_stdin πŸ”’
try_fmt_child_macros πŸ”’
Find β€œmacro_ident! {}” and try_fmt_macro the macro body if it is not marked skip
try_fmt_macro πŸ”’
workspace_root πŸ”’