Enum rustc_hir::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 AsyncGeneratorKindimpl Send for AsyncGeneratorKindimpl Sync for AsyncGeneratorKindimpl Unpin for AsyncGeneratorKindimpl UnwindSafe for AsyncGeneratorKindBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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