Enum rustc_ast_lowering::expr::FutureKind
source · enum FutureKind {
Future,
AsyncIterator,
}Expand description
Used by LoweringContext::make_lowered_await to customize the desugaring based on what kind
of future we are awaiting.
Variants§
Future
We are awaiting a normal future
AsyncIterator
We are awaiting something that’s known to be an AsyncIterator (i.e. we are in the header of
a for await loop)
Trait Implementations§
source§impl Clone for FutureKind
impl Clone for FutureKind
source§fn clone(&self) -> FutureKind
fn clone(&self) -> FutureKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FutureKind
impl Debug for FutureKind
source§impl PartialEq for FutureKind
impl PartialEq for FutureKind
source§fn eq(&self, other: &FutureKind) -> bool
fn eq(&self, other: &FutureKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for FutureKind
impl Eq for FutureKind
impl StructuralPartialEq for FutureKind
Auto Trait Implementations§
impl RefUnwindSafe for FutureKind
impl Send for FutureKind
impl Sync for FutureKind
impl Unpin for FutureKind
impl UnwindSafe for FutureKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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:
Future: 0 bytesAsyncIterator: 0 bytes