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

pub(in borrow_check) enum ReadOrWrite {
    Read(ReadKind),
    Write(WriteKind),
    Reservation(WriteKind),
    Activation(WriteKindBorrowIndex),
}

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

Variants

Read(ReadKind)

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

Write(WriteKind)

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)

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(WriteKindBorrowIndex)

Trait Implementations

impl Clone for ReadOrWrite[src]

impl Copy for ReadOrWrite[src]

impl Debug for ReadOrWrite[src]

impl Eq for ReadOrWrite[src]

impl PartialEq<ReadOrWrite> for ReadOrWrite[src]

impl StructuralEq for ReadOrWrite[src]

impl StructuralPartialEq for ReadOrWrite[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadOrWrite

impl Send for ReadOrWrite

impl Sync for ReadOrWrite

impl Unpin for ReadOrWrite

impl UnwindSafe for ReadOrWrite

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]