pub struct FrameState {
    pub call_id: CallId,
    pub protected_tags: SmallVec<[BorTag; 2]>,
}
Expand description

Per-call-stack-frame data for borrow tracking

Fields§

§call_id: CallId

The ID of the call this frame corresponds to.

§protected_tags: SmallVec<[BorTag; 2]>

If this frame is protecting any tags, they are listed here. We use this list to do incremental updates of the global list of protected tags stored in the stacked_borrows::GlobalState upon function return, and if we attempt to pop a protected tag, to identify which call is responsible for protecting the tag. See Stack::item_popped for more explanation.

This will contain one tag per reference passed to the function, so a size of 2 is enough for the vast majority of functions.

Trait Implementations§

Formats the value using the given formatter. 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: 40 bytes