Struct rustc_mir_build::build::scope::GeneratorDrop
source · struct GeneratorDrop;
Trait Implementations§
source§impl<'tcx> DropTreeBuilder<'tcx> for GeneratorDrop
impl<'tcx> DropTreeBuilder<'tcx> for GeneratorDrop
source§fn make_block(cfg: &mut CFG<'tcx>) -> BasicBlock
fn make_block(cfg: &mut CFG<'tcx>) -> BasicBlock
Create a new block for the tree. This should call either
cfg.start_new_block()
or cfg.start_new_cleanup_block()
.source§fn add_entry(cfg: &mut CFG<'tcx>, from: BasicBlock, to: BasicBlock)
fn add_entry(cfg: &mut CFG<'tcx>, from: BasicBlock, to: BasicBlock)
Links a block outside the drop tree,
from
, to the block to
inside
the drop tree.Auto Trait Implementations§
impl RefUnwindSafe for GeneratorDrop
impl Send for GeneratorDrop
impl Sync for GeneratorDrop
impl Unpin for GeneratorDrop
impl UnwindSafe for GeneratorDrop
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
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: 0 bytes