Module items

Source

Structs§

FnSig 🔒
Represents a fn’s signature.
Item 🔒
OpaqueType 🔒
StaticParts 🔒
StructParts 🔒
TraitAliasBounds 🔒
TyAliasRewriteInfo 🔒
WhereClauseOption 🔒

Enums§

BodyElement 🔒
BracePos 🔒
FnBraceStyle 🔒
ItemVisitorKind 🔒
WhereClauseSpace 🔒
Kind of spaces to put before where.

Constants§

DEFAULT_VISIBILITY 🔒

Functions§

allow_single_line_let_else_block 🔒
compute_budgets_for_params 🔒
enum_variant_span 🔒
format_empty_struct_or_tuple 🔒
format_generics 🔒
format_header 🔒
format_impl 🔒
format_impl_ref_and_type 🔒
format_struct 🔒
format_struct_struct 🔒
format_trait 🔒
format_trait_alias 🔒
format_tuple_struct 🔒
format_unit_struct 🔒
generics_shape_from_config 🔒
get_bytepos_after_visibility 🔒
get_missing_param_comments 🔒
Recover any missing comments between the param and the type.
is_empty_infer 🔒
is_extern_crate 🔒
is_impl_single_line 🔒
is_mod_decl 🔒
Returns true for mod foo;, false for mod foo { .. }.
is_named_param 🔒
is_use_item 🔒
missing_span_before_after_where 🔒
newline_for_brace 🔒
rewrite_attrs 🔒
Rewrite the attributes of an item.
rewrite_bounds_on_where_clause 🔒
Rewrite bounds on a where clause.
rewrite_comments_before_after_where 🔒
rewrite_explicit_self 🔒
rewrite_extern_crate 🔒
Rewrite extern crate foo;. The given shape is used to format the extern crate’s attributes.
rewrite_fn_base 🔒
rewrite_generics 🔒
rewrite_mod 🔒
Rewrite an inline mod. The given shape is used to format the mod’s attributes.
rewrite_params 🔒
rewrite_static 🔒
rewrite_struct_field 🔒
rewrite_struct_field_prefix 🔒
rewrite_trait_ref 🔒
rewrite_ty 🔒
rewrite_type_alias 🔒
rewrite_where_clause 🔒
rewrite_where_clause_rfc_style 🔒
rewrite_where_keyword 🔒
Rewrite where and comment around it.
same_line_else_kw_and_brace 🔒
When the initializer expression is multi-lined, then the else keyword and opening brace of the block ( i.e. “else {”) should be put on the same line as the end of the initializer expression if all the following are true:
span_hi_for_param 🔒
span_lo_for_param 🔒
type_annotation_separator 🔒
type_annotation_spacing 🔒