pub(crate) struct GhostStatements {
at_start: Vec<GhostStatement>,
at_location: FxHashMap<Location, Vec<GhostStatement>>,
at_edge: FxHashMap<BasicBlock, FxHashMap<BasicBlock, Vec<GhostStatement>>>,
}
Fields§
§at_start: Vec<GhostStatement>
§at_location: FxHashMap<Location, Vec<GhostStatement>>
§at_edge: FxHashMap<BasicBlock, FxHashMap<BasicBlock, Vec<GhostStatement>>>
Implementations§
Source§impl GhostStatements
impl GhostStatements
fn new(genv: GlobalEnv<'_, '_>, def_id: LocalDefId) -> QueryResult<Self>
fn add_unblocks<'tcx>(&mut self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>)
fn insert_at(&mut self, point: Point, stmt: GhostStatement)
fn extend_at( &mut self, point: Point, stmts: impl IntoIterator<Item = GhostStatement>, )
fn at(&mut self, point: Point) -> StatementsAt<'_>
pub(crate) fn statements_at( &self, point: Point, ) -> impl Iterator<Item = &GhostStatement>
pub(crate) fn write_mir<'tcx, W: Write>( &self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>, w: &mut W, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for GhostStatements
impl RefUnwindSafe for GhostStatements
impl Send for GhostStatements
impl Sync for GhostStatements
impl Unpin for GhostStatements
impl UnwindSafe for GhostStatements
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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