[][src]Enum rustc_mir::borrow_check::LocalMutationIsAllowed

pub(in borrow_check) enum LocalMutationIsAllowed {
    Yes,
    ExceptUpvars,
    No,
}

When checking permissions for a place access, this flag is used to indicate that an immutable local place can be mutated.

Variants

Yes
ExceptUpvars

We want use of immutable upvars to cause a "write to immutable upvar" error, not an "reassignment" error.

No

Trait Implementations

impl Clone for LocalMutationIsAllowed[src]

impl Copy for LocalMutationIsAllowed[src]

impl Debug for LocalMutationIsAllowed[src]

impl Eq for LocalMutationIsAllowed[src]

impl PartialEq<LocalMutationIsAllowed> for LocalMutationIsAllowed[src]

impl StructuralEq for LocalMutationIsAllowed[src]

impl StructuralPartialEq for LocalMutationIsAllowed[src]

Auto Trait Implementations

impl RefUnwindSafe for LocalMutationIsAllowed

impl Send for LocalMutationIsAllowed

impl Sync for LocalMutationIsAllowed

impl Unpin for LocalMutationIsAllowed

impl UnwindSafe for LocalMutationIsAllowed

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]