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_opt_lifetime πŸ”’
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 πŸ”’