pub struct AsyncLetExpr {
pub name: String,
pub expr: Box<Expr>,
pub span: Span,
}Expand description
Async let expression: async let name = expr
Spawns a task and binds a future handle to a local variable.
Fields§
§name: StringThe variable name to bind the future handle to
expr: Box<Expr>The expression to spawn as an async task
span: SpanSpan covering the entire async let expression
Trait Implementations§
Source§impl Clone for AsyncLetExpr
impl Clone for AsyncLetExpr
Source§fn clone(&self) -> AsyncLetExpr
fn clone(&self) -> AsyncLetExpr
Returns a duplicate 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 AsyncLetExpr
impl Debug for AsyncLetExpr
Source§impl<'de> Deserialize<'de> for AsyncLetExpr
impl<'de> Deserialize<'de> for AsyncLetExpr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AsyncLetExpr
impl PartialEq for AsyncLetExpr
Source§impl Serialize for AsyncLetExpr
impl Serialize for AsyncLetExpr
impl StructuralPartialEq for AsyncLetExpr
Auto Trait Implementations§
impl Freeze for AsyncLetExpr
impl RefUnwindSafe for AsyncLetExpr
impl Send for AsyncLetExpr
impl Sync for AsyncLetExpr
impl Unpin for AsyncLetExpr
impl UnsafeUnpin for AsyncLetExpr
impl UnwindSafe for AsyncLetExpr
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