pub struct ExprForIn {
pub for_token: _For,
pub variable: Symbol,
pub in_token: _In,
pub collection: Box<Expr>,
pub condition: Option<WhenCondition>,
pub body: LoopBody,
}Expand description
Struct generated by strutuct! for ExprForIn.
Fields§
§for_token: _ForField ExprForIn::for_token generated by strutuct!.
variable: SymbolField ExprForIn::variable generated by strutuct!.
in_token: _InField ExprForIn::in_token generated by strutuct!.
collection: Box<Expr>Field ExprForIn::collection generated by strutuct!.
condition: Option<WhenCondition>Field ExprForIn::condition generated by strutuct!.
body: LoopBodyField ExprForIn::body generated by strutuct!.
Implementations§
Trait Implementations§
Source§impl From<ExprForIn> for PackedContent
impl From<ExprForIn> for PackedContent
Source§impl Lex for ExprForIn
impl Lex for ExprForIn
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for ExprForInwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ExprForInwhere
N: ExternalCstNode,
Source§impl PrettyTree for ExprForIn
impl PrettyTree for ExprForIn
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for ExprForIn
impl RefUnwindSafe for ExprForIn
impl Send for ExprForIn
impl Sync for ExprForIn
impl Unpin for ExprForIn
impl UnsafeUnpin for ExprForIn
impl UnwindSafe for ExprForIn
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