Enum rustc_middle::mir::visit::PlaceContext
source · [−]pub enum PlaceContext {
NonMutatingUse(NonMutatingUseContext),
MutatingUse(MutatingUseContext),
NonUse(NonUseContext),
}
Variants
NonMutatingUse(NonMutatingUseContext)
MutatingUse(MutatingUseContext)
NonUse(NonUseContext)
Implementations
sourceimpl PlaceContext
impl PlaceContext
sourcepub fn is_storage_marker(&self) -> bool
pub fn is_storage_marker(&self) -> bool
Returns true
if this place context represents a storage live or storage dead marker.
sourcepub fn is_mutating_use(&self) -> bool
pub fn is_mutating_use(&self) -> bool
Returns true
if this place context represents a use that potentially changes the value.
sourcepub fn is_place_assignment(&self) -> bool
pub fn is_place_assignment(&self) -> bool
Returns true
if this place context represents an assignment statement.
Trait Implementations
sourceimpl Clone for PlaceContext
impl Clone for PlaceContext
sourcefn clone(&self) -> PlaceContext
fn clone(&self) -> PlaceContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PlaceContext
impl Debug for PlaceContext
sourceimpl PartialEq<PlaceContext> for PlaceContext
impl PartialEq<PlaceContext> for PlaceContext
sourcefn eq(&self, other: &PlaceContext) -> bool
fn eq(&self, other: &PlaceContext) -> bool
impl Copy for PlaceContext
impl Eq for PlaceContext
impl StructuralEq for PlaceContext
impl StructuralPartialEq for PlaceContext
Auto Trait Implementations
impl RefUnwindSafe for PlaceContext
impl Send for PlaceContext
impl Sync for PlaceContext
impl Unpin for PlaceContext
impl UnwindSafe for PlaceContext
Blanket Implementations
sourceimpl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> InternIteratorElement<T, R> for T
impl<T, R> InternIteratorElement<T, R> for T
type Output = R
fn intern_with<I, F>(iter: I, f: F) -> <T as InternIteratorElement<T, R>>::Outputwhere
I: Iterator<Item = T>,
F: FnOnce(&[T]) -> R,
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
sourceimpl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
impl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
default fn from_cycle_error(tcx: CTX) -> T
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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: 2 bytes
Size for each variant:
NonMutatingUse
: 1 byteMutatingUse
: 1 byteNonUse
: 1 byte