pub struct ForExpr {
pub item: Ident,
pub index: Option<Ident>,
pub iterable: Expr,
pub body: Block,
pub span: Span,
}Expand description
for item [, index] in iterable { stmts... }
Fields§
§item: Ident§index: Option<Ident>§iterable: Expr§body: Block§span: SpanTrait 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 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