pub(crate) struct FmtVisitor<'a> {
Show 14 fields parent_context: Option<&'a RewriteContext<'a>>, pub(crate) parse_sess: &'a ParseSess, pub(crate) buffer: String, pub(crate) last_pos: BytePos, pub(crate) block_indent: Indent, pub(crate) config: &'a Config, pub(crate) is_if_else_block: bool, pub(crate) snippet_provider: &'a SnippetProvider, pub(crate) line_number: usize, pub(crate) skipped_range: Rc<RefCell<Vec<(usize, usize)>>>, pub(crate) macro_rewrite_failure: bool, pub(crate) report: FormatReport, pub(crate) skip_context: SkipContext, pub(crate) is_macro_def: bool,
}

Fields

parent_context: Option<&'a RewriteContext<'a>>parse_sess: &'a ParseSessbuffer: Stringlast_pos: BytePosblock_indent: Indentconfig: &'a Configis_if_else_block: boolsnippet_provider: &'a SnippetProviderline_number: usizeskipped_range: Rc<RefCell<Vec<(usize, usize)>>>

List of 1-based line ranges which were annotated with skip Both bounds are inclusifs.

macro_rewrite_failure: boolreport: FormatReportskip_context: SkipContextis_macro_def: bool

Implementations

Format items with the same item kind and reorder them, regroup them, or both. If in_group is true, then the items separated by an empty line will not be reordered together.

Visits and format the given items. Items are reordered If they are consecutive and reorderable.

Remove spaces between the opening brace and the first statement or the inner attribute of the block.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 176 bytes