pub struct Mutation<'tcx> {
pub mutated: Place<'tcx>,
pub reason: Reason,
pub inputs: Vec<Place<'tcx>>,
pub status: MutationStatus,
}
Expand description
Information about a particular mutation.
Fields§
§mutated: Place<'tcx>
The place that is being mutated.
reason: Reason
Simplified reason why this mutation occurred.
inputs: Vec<Place<'tcx>>
The set of inputs to the mutating operation.
status: MutationStatus
The certainty of whether the mutation is happening.
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> Freeze for Mutation<'tcx>
impl<'tcx> !RefUnwindSafe for Mutation<'tcx>
impl<'tcx> Send for Mutation<'tcx>
impl<'tcx> Sync for Mutation<'tcx>
impl<'tcx> Unpin for Mutation<'tcx>
impl<'tcx> !UnwindSafe for Mutation<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more