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

pub(in borrow_check) enum ReadOrWrite {

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



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


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).


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.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]