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§
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_
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