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

pub enum AsyncGeneratorKind {
    Block,
    Closure,
    Fn,
}

In the case of a generator created as part of an async construct, which kind of async construct caused it to be created?

This helps error messages but is also used to drive coercions in type-checking (see #60424).

Variants

Block

An explicit async block written by the user.

Closure

An explicit async block written by the user.

Fn

The async block generated as the body of an async function.

Implementations

impl AsyncGeneratorKind[src]

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

Trait Implementations

impl Clone for AsyncGeneratorKind[src]

impl Copy for AsyncGeneratorKind[src]

impl Debug for AsyncGeneratorKind[src]

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

impl Display for AsyncGeneratorKind[src]

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

impl Eq for AsyncGeneratorKind[src]

impl Hash for AsyncGeneratorKind[src]

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

impl PartialEq<AsyncGeneratorKind> for AsyncGeneratorKind[src]

impl PartialOrd<AsyncGeneratorKind> for AsyncGeneratorKind[src]

impl StructuralEq for AsyncGeneratorKind[src]

impl StructuralPartialEq for AsyncGeneratorKind[src]

Auto Trait Implementations

impl RefUnwindSafe for AsyncGeneratorKind

impl Send for AsyncGeneratorKind

impl Sync for AsyncGeneratorKind

impl Unpin for AsyncGeneratorKind

impl UnwindSafe for AsyncGeneratorKind

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.