[−][src]Enum rustc_middle::mir::visit::NonMutatingUseContext

pub enum NonMutatingUseContext {
    Inspect,
    Copy,
    Move,
    SharedBorrow,
    ShallowBorrow,
    UniqueBorrow,
    AddressOf,
    Projection,
}

Variants

Inspect

Being inspected in some way, like loading a len.

Copy

Consumed as part of an operand.

Move

Consumed as part of an operand.

SharedBorrow

Shared borrow.

ShallowBorrow

Shallow borrow.

UniqueBorrow

Unique borrow.

AddressOf

AddressOf for *const pointer.

Projection

Used as base for another place, e.g., x in x.y. Will not mutate the place. For example, the projection x.y is not marked as a mutation in these cases:

z = x.y;
f(&x.y);

Trait Implementations

impl Clone for NonMutatingUseContext[src]

impl Copy for NonMutatingUseContext[src]

impl Debug for NonMutatingUseContext[src]

impl Eq for NonMutatingUseContext[src]

impl PartialEq<NonMutatingUseContext> for NonMutatingUseContext[src]

impl StructuralEq for NonMutatingUseContext[src]

impl StructuralPartialEq for NonMutatingUseContext[src]

Auto Trait Implementations

impl RefUnwindSafe for NonMutatingUseContext

impl Send for NonMutatingUseContext

impl Sync for NonMutatingUseContext

impl Unpin for NonMutatingUseContext

impl UnwindSafe for NonMutatingUseContext

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

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

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

impl<'a, T> Captures<'a> 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> MaybeResult<T> for T[src]

type Error = !

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]