pub struct FmtPrinterData<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    fmt: String,
    empty_path: bool,
    in_value: bool,
    pub print_alloc_ids: bool,
    used_region_names: FxHashSet<Symbol>,
    region_index: usize,
    binder_depth: usize,
    printed_type_count: usize,
    pub region_highlight_mode: RegionHighlightMode<'tcx>,
    pub ty_infer_name_resolver: Option<Box<dyn Fn(TyVid) -> Option<Symbol> + 'a>>,
    pub const_infer_name_resolver: Option<Box<dyn Fn(ConstVid<'tcx>) -> Option<Symbol> + 'a>>,
}

Fields

tcx: TyCtxt<'tcx>fmt: Stringempty_path: boolin_value: boolprint_alloc_ids: boolused_region_names: FxHashSet<Symbol>region_index: usizebinder_depth: usizeprinted_type_count: usizeregion_highlight_mode: RegionHighlightMode<'tcx>ty_infer_name_resolver: Option<Box<dyn Fn(TyVid) -> Option<Symbol> + 'a>>const_infer_name_resolver: Option<Box<dyn Fn(ConstVid<'tcx>) -> Option<Symbol> + 'a>>

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: 208 bytes