Struct rustc_monomorphize::collector::MirNeighborCollector[][src]

struct MirNeighborCollector<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    body: &'a Body<'tcx>,
    output: &'a mut Vec<Spanned<MonoItem<'tcx>>>,
    instance: Instance<'tcx>,
}

Fields

tcx: TyCtxt<'tcx>body: &'a Body<'tcx>output: &'a mut Vec<Spanned<MonoItem<'tcx>>>instance: Instance<'tcx>

Implementations

Trait Implementations

This does not walk the constant, as it has been handled entirely here and trying to walk it would attempt to evaluate the ty::Const inside, which doesn’t necessarily work, as some constants cannot be represented in the type system.

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

Performs the conversion.

Performs the conversion.

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