Struct rustc_mir::transform::simplify_comparison_integral::SimplifyComparisonIntegral [−][src]
pub struct SimplifyComparisonIntegral;
Expand description
Pass to convert if conditions on integrals into switches on the integral.
For an example, it turns something like
_3 = Eq(move _4, const 43i32); StorageDead(_4); switchInt(_3) -> [false: bb2, otherwise: bb3];
into:
switchInt(_4) -> [43i32: bb3, otherwise: bb2];
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SimplifyComparisonIntegral
impl Send for SimplifyComparisonIntegral
impl Sync for SimplifyComparisonIntegral
impl Unpin for SimplifyComparisonIntegral
impl UnwindSafe for SimplifyComparisonIntegral
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]