Enum rustc_mir::borrow_check::LocalMutationIsAllowed [−][src]
enum LocalMutationIsAllowed {
Yes,
ExceptUpvars,
No,
}Expand description
When checking permissions for a place access, this flag is used to indicate that an immutable local place can be mutated.
Variants
We want use of immutable upvars to cause a “write to immutable upvar” error, not an “reassignment” error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LocalMutationIsAllowedimpl Send for LocalMutationIsAllowedimpl Sync for LocalMutationIsAllowedimpl Unpin for LocalMutationIsAllowedimpl UnwindSafe for LocalMutationIsAllowedBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte