[−][src]Enum rustc_hir::LoopSource

pub enum LoopSource {
    Loop,
    While,
    WhileLet,
    ForLoop,
}

The loop type that yielded an ExprKind::Loop.

Variants

Loop

A loop { .. } loop.

While

A while _ { .. } loop.

WhileLet

A while let _ = _ { .. } loop.

ForLoop

A for _ in _ { .. } loop.

Implementations

impl LoopSource[src]

pub fn name(self) -> &'static str[src]

Trait Implementations

impl Clone for LoopSource[src]

impl Copy for LoopSource[src]

impl Debug for LoopSource[src]

impl<__E: Encoder> Encodable<__E> for LoopSource[src]

impl<__CTX> HashStable<__CTX> for LoopSource where
    __CTX: HashStableContext, 
[src]

impl PartialEq<LoopSource> for LoopSource[src]

impl StructuralPartialEq for LoopSource[src]

Auto Trait Implementations

impl RefUnwindSafe for LoopSource

impl Send for LoopSource

impl Sync for LoopSource

impl Unpin for LoopSource

impl UnwindSafe for LoopSource

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.