struct UnsafeCellVisitor<'ecx, 'mir, 'tcx, F>where
    F: FnMut(&MPlaceTy<'tcx, Provenance>) -> InterpResult<'tcx>,
{ ecx: &'ecx MiriInterpCx<'mir, 'tcx>, unsafe_cell_action: F, }
Expand description

Visiting the memory covered by a MemPlace, being aware of whether we are inside an UnsafeCell or not.

Fields§

§ecx: &'ecx MiriInterpCx<'mir, 'tcx>§unsafe_cell_action: F

Trait Implementations§

The visitor must have an InterpCx in it.
Visits the given value, dispatching as appropriate to more specialized visitors.
Visits this value as an aggregate, you are getting an iterator yielding all the fields (still in an InterpResult, you have to do error handling yourself). Recurses into the fields.
Visits the given value as a union. No automatic recursion can happen here.
read_discriminant can be hooked for better error messages.
Visits the given value as the pointer of a Box. There is nothing to recurse into. The type of v will be a raw pointer, but this is a field of Box<T> and the pointee type is the actual T.
Called each time we recurse down to a field of a “product-like” aggregate (structs, tuples, arrays and the like, but not enums), passing in old (outer) and new (inner) value. This gives the visitor the chance to track the stack of nested fields that we are descending through.
Called when recursing into an enum variant. This gives the visitor the chance to track the stack of nested fields that we are descending through.

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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.