pub struct Case {
pub low: i128,
pub high: i128,
pub body: StmtId,
}Expand description
One case of a switch, after its value has been folded.
Fields§
§low: i128The lowest value that reaches this case.
The value is held in the promoted type of the controlling expression, converted there once, so that the comparison the IR emits is between two values of one type.
high: i128The highest value that reaches it, which equals low unless this is GNU’s case 1 ... 9.
body: StmtIdThe statement it labels.
Trait Implementations§
impl Copy for Case
impl Eq for Case
impl StructuralPartialEq for Case
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Case
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