pub enum ControlFrame<'ctx> {
Block {
next: BasicBlock<'ctx>,
phis: SmallVec<[PhiValue<'ctx>; 1]>,
stack_size_snapshot: usize,
},
Loop {
body: BasicBlock<'ctx>,
next: BasicBlock<'ctx>,
phis: SmallVec<[PhiValue<'ctx>; 1]>,
loop_body_phis: SmallVec<[PhiValue<'ctx>; 1]>,
stack_size_snapshot: usize,
},
IfElse {
if_then: BasicBlock<'ctx>,
if_else: BasicBlock<'ctx>,
next: BasicBlock<'ctx>,
then_phis: SmallVec<[PhiValue<'ctx>; 1]>,
else_phis: SmallVec<[PhiValue<'ctx>; 1]>,
next_phis: SmallVec<[PhiValue<'ctx>; 1]>,
stack_size_snapshot: usize,
if_else_state: IfElseState,
},
Landingpad {
can_throw: BasicBlock<'ctx>,
next: BasicBlock<'ctx>,
can_throw_phis: SmallVec<[PhiValue<'ctx>; 1]>,
next_phis: SmallVec<[PhiValue<'ctx>; 1]>,
stack_size_snapshot: usize,
},
}
Variants§
Block
Loop
IfElse
Fields
§
if_then: BasicBlock<'ctx>
§
if_else: BasicBlock<'ctx>
§
next: BasicBlock<'ctx>
§
if_else_state: IfElseState
Landingpad
Implementations§
source§impl<'ctx> ControlFrame<'ctx>
impl<'ctx> ControlFrame<'ctx>
Trait Implementations§
Auto Trait Implementations§
impl<'ctx> Freeze for ControlFrame<'ctx>
impl<'ctx> RefUnwindSafe for ControlFrame<'ctx>
impl<'ctx> !Send for ControlFrame<'ctx>
impl<'ctx> !Sync for ControlFrame<'ctx>
impl<'ctx> Unpin for ControlFrame<'ctx>
impl<'ctx> UnwindSafe for ControlFrame<'ctx>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.