struct Cx<'tcx> {
    tcx: TyCtxt<'tcx>,
    thir: Thir<'tcx>,
    param_env: ParamEnv<'tcx>,
    region_scope_tree: &'tcx ScopeTree,
    typeck_results: &'tcx TypeckResults<'tcx>,
    rvalue_scopes: &'tcx RvalueScopes,
    adjustment_span: Option<(HirId, Span)>,
    body_owner: DefId,
}

Fields

tcx: TyCtxt<'tcx>thir: Thir<'tcx>param_env: ParamEnv<'tcx>region_scope_tree: &'tcx ScopeTreetypeck_results: &'tcx TypeckResults<'tcx>rvalue_scopes: &'tcx RvalueScopesadjustment_span: Option<(HirId, Span)>

When applying adjustments to the expression with the given HirId, use the given Span, instead of the usual span. This is used to assign the span of an overall method call (e.g. my_val.foo()) to the adjustment expressions for the receiver.

body_owner: DefId

The DefId of the owner of this body.

Implementations

Lowers a cast expression.

Dealing with user type annotations is left to the caller.

Converts a list of named fields (i.e., for struct-like struct/enum ADTs) into FieldExpr.

Trait Implementations

Looks up the type associated with this hir-id and applies the user-given substitutions; the hir-id must map to a suitable 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: 184 bytes