Struct rustc_mir::borrow_check::borrow_set::BorrowData [−][src]
pub(crate) struct BorrowData<'tcx> { pub(crate) reserve_location: Location, pub(crate) activation_location: Option<(TwoPhaseUse, Location)>, pub(crate) kind: BorrowKind, pub(crate) region: Region<'tcx>, pub(crate) borrowed_place: Place<'tcx>, pub(crate) assigned_place: Place<'tcx>, }
🔬 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?
Fields
reserve_location: Location
🔬 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?
Location where the borrow reservation starts. In many cases, this will be equal to the activation location but not always.
activation_location: Option<(TwoPhaseUse, Location)>
🔬 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?
Location where the borrow is activated. None if this is not a 2-phase borrow.
kind: BorrowKind
🔬 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?
What kind of borrow this is
region: Region<'tcx>
🔬 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?
The region for which this borrow is live
borrowed_place: Place<'tcx>
🔬 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?
Place from which we are borrowing
assigned_place: Place<'tcx>
🔬 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?
Place to which the borrow was stored
Trait Implementations
impl<'tcx> Debug for BorrowData<'tcx>
[src]
impl<'tcx> Debug for BorrowData<'tcx>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tcx> Display for BorrowData<'tcx>
[src]
impl<'tcx> Display for BorrowData<'tcx>
Auto Trait Implementations
impl<'tcx> !Send for BorrowData<'tcx>
impl<'tcx> !Send for BorrowData<'tcx>
impl<'tcx> !Sync for BorrowData<'tcx>
impl<'tcx> !Sync for BorrowData<'tcx>