StructsΒ§
- FnSig π
- Represents a fnβs signature.
- Item π
- Opaque
Type π - Static
Parts π - Struct
Parts π - Trait
Alias πBounds - TyAlias
Rewrite πInfo - Where
Clause πOption
EnumsΒ§
- Body
Element π - Brace
Pos π - FnBrace
Style π - Item
Visitor πKind - Where
Clause πSpace - 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
formod foo;
, false formod 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