[−][src]Enum rustc_mir::transform::simplify_try::StatementEquality

pub(in transform::simplify_try) enum StatementEquality {
    TrivialEqual,
    ConsideredEqual(BasicBlock),
    NotEqual,
}

Variants

TrivialEqual

The two statements are trivially equal; same kind

ConsideredEqual(BasicBlock)

The two statements are considered equal, but may be of different kinds. The BasicBlock field is the basic block to jump to when performing the branch-same optimization. For example, _0 = _1 and discriminant(_0) = discriminant(0) are considered equal if 0 is a fieldless variant of an enum. But we don't want to jump to the basic block with the SetDiscriminant, as that is not legal if _1 is not the 0 variant index

NotEqual

The two statements are not equal

Implementations

impl StatementEquality[src]

pub(in transform::simplify_try) fn combine(
    &self,
    other: &StatementEquality
) -> StatementEquality
[src]

Trait Implementations

impl Clone for StatementEquality[src]

impl Copy for StatementEquality[src]

impl Eq for StatementEquality[src]

impl PartialEq<StatementEquality> for StatementEquality[src]

impl StructuralEq for StatementEquality[src]

impl StructuralPartialEq for StatementEquality[src]

Auto Trait Implementations

impl RefUnwindSafe for StatementEquality

impl Send for StatementEquality

impl Sync for StatementEquality

impl Unpin for StatementEquality

impl UnwindSafe for StatementEquality

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]