pub struct SwitchArm {
pub value: u64,
pub target: LocalBlockId,
pub args: Vec<LocalValueId>,
}Expand description
One arm of a Switch: the scrutinee value that selects it, the block it
transfers to, and that block’s parameter arguments.
Fields§
§value: u64The scrutinee value this arm matches.
target: LocalBlockIdThe CFG successor, a bare body-local block index — same locality rule as
Branch::target.
args: Vec<LocalValueId>Arguments passed to target’s parameters when this arm is taken.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwitchArm
impl<'de> Deserialize<'de> for SwitchArm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SwitchArm
impl StructuralPartialEq for SwitchArm
Auto Trait Implementations§
impl Freeze for SwitchArm
impl RefUnwindSafe for SwitchArm
impl Send for SwitchArm
impl Sync for SwitchArm
impl Unpin for SwitchArm
impl UnsafeUnpin for SwitchArm
impl UnwindSafe for SwitchArm
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