Enum rustc_mir::borrow_check::ReadOrWrite[][src]

enum ReadOrWrite {
    Read(ReadKind),
    Write(WriteKind),
    Reservation(WriteKind),
    Activation(WriteKindBorrowIndex),
}
🔬 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?

Kind of access to a value: read or write (For informational purposes only)

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?

From the RFC: "A read means that the existing data may be read, but will not be changed."

🔬 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?

From the RFC: "A write means that the data may be mutated to new values or otherwise invalidated (for example, it could be de-initialized, as in a move operation).

🔬 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?

For two-phase borrows, we distinguish a reservation (which is treated like a Read) from an activation (which is treated like a write), and each of those is furthermore distinguished from Reads/Writes above.

🔬 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 ReadOrWrite
[src]

impl Clone for ReadOrWrite
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ReadOrWrite
[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 ReadOrWrite
[src]

impl Debug for ReadOrWrite
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ReadOrWrite

impl Sync for ReadOrWrite