pub enum Shape {
Simple {
block: BlockId,
arms: Vec<Arm>,
},
Loop {
id: u32,
name: Option<String>,
entries: Vec<BlockId>,
state: Option<u32>,
body: Seq,
},
Dispatch {
state: u32,
arms: Vec<Arm>,
},
}Expand description
A piece of recovered control flow.
Variants§
Simple
One basic block: its statements, then its terminator.
Fields
Loop
'l: loop { … }.
Fields
Dispatch
The head of an irreducible region: a match on the state variable that
picks which entry this turn round the loop runs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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