FnArg

Type Alias FnArg 

Source
pub type FnArg<'tcx> = FnArg<'tcx, Provenance>;

Aliased Type§

pub enum FnArg<'tcx> {
    Copy(OpTy<'tcx, Provenance>),
    InPlace(MPlaceTy<'tcx, Provenance>),
}

Variants§

§

Copy(OpTy<'tcx, Provenance>)

Pass a copy of the given operand.

§

InPlace(MPlaceTy<'tcx, Provenance>)

Allow for the argument to be passed in-place: destroy the value originally stored at that place and make the place inaccessible for the duration of the function call. This must be an in-memory place so that we can do the proper alias checks.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.