[−][src]Enum rustc_mir_build::build::ForGuard

pub(in build) enum ForGuard {
    RefWithinGuard,
    OutsideGuard,
}

ForGuard indicates whether we are talking about:

  1. The variable for use outside of guard expressions, or
  2. The temp that holds reference to (1.), which is actually what the guard expressions see.

Variants

RefWithinGuard
OutsideGuard

Trait Implementations

impl Clone for ForGuard[src]

impl Copy for ForGuard[src]

impl Debug for ForGuard[src]

impl Eq for ForGuard[src]

impl PartialEq<ForGuard> for ForGuard[src]

impl StructuralEq for ForGuard[src]

impl StructuralPartialEq for ForGuard[src]

Auto Trait Implementations

impl RefUnwindSafe for ForGuard

impl Send for ForGuard

impl Sync for ForGuard

impl Unpin for ForGuard

impl UnwindSafe for ForGuard

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<'a, T> Captures<'a> 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.