pub enum BackwardItem<'tcx> {
Statement {
block: BasicBlock,
statement_index: usize,
kind: KeepReason,
},
Terminator {
block: BasicBlock,
kind: KeepReason,
},
PathStep {
step: PathStep,
kind: KeepReason,
},
ContractFact {
property: Property<'tcx>,
},
Forget {
reason: ForgetReason,
},
}Expand description
One item kept while walking a path backward.
Variants§
Statement
A MIR statement retained from a basic block.
Terminator
A MIR terminator retained from a basic block.
PathStep
A path-level step retained as structural context.
ContractFact
A contract fact injected by the engine before the forward visit. Never produced by the backward visitor itself.
Forget
A conservative loss of precision for relevant state.
Fields
§
reason: ForgetReasonTrait Implementations§
Source§impl<'tcx> Clone for BackwardItem<'tcx>
impl<'tcx> Clone for BackwardItem<'tcx>
Source§fn clone(&self) -> BackwardItem<'tcx>
fn clone(&self) -> BackwardItem<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'tcx> Freeze for BackwardItem<'tcx>
impl<'tcx> !RefUnwindSafe for BackwardItem<'tcx>
impl<'tcx> Send for BackwardItem<'tcx>
impl<'tcx> Sync for BackwardItem<'tcx>
impl<'tcx> Unpin for BackwardItem<'tcx>
impl<'tcx> !UnwindSafe for BackwardItem<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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