Enum rustc_hir::AsyncGeneratorKind [−][src]
pub enum AsyncGeneratorKind {
Block,
Closure,
Fn,
}
Expand description
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
An explicit async
block written by the user.
An explicit async
block written by the user.
The async
block generated as the body of an async function.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Block
: 0 bytesClosure
: 0 bytesFn
: 0 bytes