Enum rustc_mir::borrow_check::ReadOrWrite [−][src]
enum ReadOrWrite { Read(ReadKind), Write(WriteKind), Reservation(WriteKind), Activation(WriteKind, BorrowIndex), }
🔬 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
Read(ReadKind)
🔬 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."
Write(WriteKind)
🔬 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).
Reservation(WriteKind)
🔬 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.
Activation(WriteKind, BorrowIndex)
🔬 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 Copy for ReadOrWrite
impl Clone for ReadOrWrite
[src]
impl Clone for ReadOrWrite
fn clone(&self) -> ReadOrWrite
[src]
fn clone(&self) -> ReadOrWrite
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ReadOrWrite
[src]
impl PartialEq for ReadOrWrite
fn eq(&self, other: &ReadOrWrite) -> bool
[src]
fn eq(&self, other: &ReadOrWrite) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ReadOrWrite) -> bool
[src]
fn ne(&self, other: &ReadOrWrite) -> bool
This method tests for !=
.
impl Eq for ReadOrWrite
[src]
impl Eq for ReadOrWrite
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Debug for ReadOrWrite
[src]
impl Debug for ReadOrWrite
Auto Trait Implementations
impl Send for ReadOrWrite
impl Send for ReadOrWrite
impl Sync for ReadOrWrite
impl Sync for ReadOrWrite