pub enum StackPopCleanup {
Goto {
ret: Option<BasicBlock>,
unwind: StackPopUnwind,
},
Root {
cleanup: bool,
},
}
Variants§
Goto
Jump to the next block in the caller, or cause UB if None (that’s a function
that may never return). Also store layout of return place so
we can validate it at that layout.
ret
stores the block we jump to on a normal return, while unwind
stores the block used for cleanup during unwinding.
Root
The root frame of the stack: nowhere else to jump to.
cleanup
says whether locals are deallocated. Static computation
wants them leaked to intern what they need (and just throw away
the entire ecx
when it is done).
Trait Implementations§
source§impl Clone for StackPopCleanup
impl Clone for StackPopCleanup
source§fn clone(&self) -> StackPopCleanup
fn clone(&self) -> StackPopCleanup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StackPopCleanup
impl Debug for StackPopCleanup
source§impl PartialEq<StackPopCleanup> for StackPopCleanup
impl PartialEq<StackPopCleanup> for StackPopCleanup
source§fn eq(&self, other: &StackPopCleanup) -> bool
fn eq(&self, other: &StackPopCleanup) -> bool
impl Copy for StackPopCleanup
impl Eq for StackPopCleanup
impl StructuralEq for StackPopCleanup
impl StructuralPartialEq for StackPopCleanup
Auto Trait Implementations§
impl RefUnwindSafe for StackPopCleanup
impl Send for StackPopCleanup
impl Sync for StackPopCleanup
impl Unpin for StackPopCleanup
impl UnwindSafe for StackPopCleanup
Blanket Implementations§
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: 8 bytes
Size for each variant:
Goto
: 8 bytesRoot
: 1 byte