pub enum ControlFlow {
Continue {
next: AddressValue,
},
Jump {
target: AddressValue,
},
Call {
target: AddressValue,
return_pc: AddressValue,
},
Choice {
fall_through: AddressValue,
branch_target: AddressValue,
},
Diverge,
}Expand description
How execution proceeds after an instruction. CPU-neutral: every driver maps its own control flow onto these cases.
Variants§
Continue
Fall through to next.
Fields
§
next: AddressValueJump
Unconditional jump to target.
Fields
§
target: AddressValueCall
Call target, returning to return_pc.
Choice
Branch to branch_target or fall through to fall_through.
Diverge
Unknown or data-dependent control flow.
Trait Implementations§
Source§impl Clone for ControlFlow
impl Clone for ControlFlow
impl Copy for ControlFlow
Source§impl Debug for ControlFlow
impl Debug for ControlFlow
impl Eq for ControlFlow
Source§impl PartialEq for ControlFlow
impl PartialEq for ControlFlow
impl StructuralPartialEq for ControlFlow
Auto Trait Implementations§
impl Forget for ControlFlow
impl Freeze for ControlFlow
impl Move for ControlFlow
impl RefUnwindSafe for ControlFlow
impl Send for ControlFlow
impl Sync for ControlFlow
impl Unpin for ControlFlow
impl UnsafeUnpin for ControlFlow
impl UnwindSafe for ControlFlow
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