[−][src]Enum rustc_hir::hir::YieldSource

pub enum YieldSource {
    Await {
        expr: Option<HirId>,
    },
    Yield,
}

The yield kind that caused an ExprKind::Yield.

Variants

Await

An <expr>.await.

Fields of Await

expr: Option<HirId>
Yield

A plain yield.

Implementations

impl YieldSource[src]

pub fn is_await(&self) -> bool[src]

Trait Implementations

impl Clone for YieldSource[src]

impl Copy for YieldSource[src]

impl Debug for YieldSource[src]

impl<__D: Decoder> Decodable<__D> for YieldSource[src]

impl Display for YieldSource[src]

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

impl Eq for YieldSource[src]

impl From<GeneratorKind> for YieldSource[src]

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

impl PartialEq<YieldSource> for YieldSource[src]

impl StructuralEq for YieldSource[src]

impl StructuralPartialEq for YieldSource[src]

Auto Trait Implementations

impl RefUnwindSafe for YieldSource

impl Send for YieldSource

impl Sync for YieldSource

impl Unpin for YieldSource

impl UnwindSafe for YieldSource

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> ToString for T where
    T: Display + ?Sized, 
[src]

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.