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 beforewhere
.
Constants§
- DEFAULT_
VISIBILITY π
Functions§
- enum_
variant_ πspan - format_
generics π - format_
header π - format_
impl π - format_
struct π - format_
struct_ πstruct - format_
trait π - format_
trait_ πalias - format_
tuple_ πstruct - format_
unit_ πstruct - Recover any missing comments between the param and the type.
- is_
empty_ πinfer - is_
extern_ πcrate - is_
impl_ πsingle_ line - is_
mod_ πdecl Returnstrue
formod foo;
, false formod foo { .. }
. - is_
named_ πparam - is_
use_ πitem - newline_
for_ πbrace - rewrite_
attrs πRewrite the attributes of an item. - Rewrite bounds on a where clause.
- rewrite_
extern_ πcrate Rewriteextern 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_
trait_ πref - rewrite_
ty π - rewrite_
type_ πalias - rewrite_
where_ πclause - Rewrite
where
and comment around it. - 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