struct ExprUseDelegate<'tcx> {
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    places: ConsumedAndBorrowedPlaces,
}
Expand description

Works with ExprUseVisitor to find interesting values for the drop range analysis.

Interesting values are those that are either dropped or borrowed. For dropped values, we also record the parent expression, which is the point where the drop actually takes place.

Fields

tcx: TyCtxt<'tcx>param_env: ParamEnv<'tcx>places: ConsumedAndBorrowedPlaces

Implementations

Trait Implementations

The value found at place is moved, depending on mode. Where diag_expr_id is the id used for diagnostics for place. Read more

The value found at place is being borrowed with kind bk. diag_expr_id is the id used for diagnostics (see consume for more details). Read more

The value found at place is being copied. diag_expr_id is the id used for diagnostics (see consume for more details). Read more

The path at assignee_place is being assigned to. diag_expr_id is the id used for diagnostics (see consume for more details). Read more

The path at binding_place is a binding that is being initialized. Read more

The place should be a fake read because of specified cause.

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