pub struct ForExpr {
pub pattern: Pattern,
pub iterable: Box<Expr>,
pub body: Box<Expr>,
pub is_async: bool,
}Expand description
For expression that returns a value
Fields§
§pattern: Pattern§iterable: Box<Expr>§body: Box<Expr>§is_async: boolWhether this is an async for-await: for await x in stream { ... }
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForExpr
impl<'de> Deserialize<'de> for ForExpr
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
impl StructuralPartialEq for ForExpr
Auto Trait Implementations§
impl Freeze for ForExpr
impl RefUnwindSafe for ForExpr
impl Send for ForExpr
impl Sync for ForExpr
impl Unpin for ForExpr
impl UnsafeUnpin for ForExpr
impl UnwindSafe for ForExpr
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