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
Fields
cleanup: bool
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
sourceimpl Clone for StackPopCleanup
impl Clone for StackPopCleanup
sourcefn clone(&self) -> StackPopCleanup
fn clone(&self) -> StackPopCleanup
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for StackPopCleanup
impl Debug for StackPopCleanup
sourceimpl PartialEq<StackPopCleanup> for StackPopCleanup
impl PartialEq<StackPopCleanup> for StackPopCleanup
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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
: 5 bytes