Enum rustc_mir::borrow_check::borrow_set::TwoPhaseUse[][src]

pub(crate) enum TwoPhaseUse {
    MutActivate,
    SharedUse,
}
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Every two-phase borrow has exactly one use (or else it is not a proper two-phase borrow under our current definition). However, not all uses are actually ones that activate the reservation.. In particular, a shared borrow of a &mut does not activate the reservation.

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl Copy for TwoPhaseUse
[src]

impl Clone for TwoPhaseUse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TwoPhaseUse
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TwoPhaseUse
[src]

impl Debug for TwoPhaseUse
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TwoPhaseUse

impl Sync for TwoPhaseUse