pub struct ExprIf {
pub if_token: _If,
pub condition: Box<Expr>,
pub then_clause: ThenClause,
pub else_clause: Option<ElseClause>,
}Expand description
Struct generated by strutuct! for ExprIf.
Fields§
§if_token: _IfField ExprIf::if_token generated by strutuct!.
condition: Box<Expr>Field ExprIf::condition generated by strutuct!.
then_clause: ThenClauseField ExprIf::then_clause generated by strutuct!.
else_clause: Option<ElseClause>Field ExprIf::else_clause generated by strutuct!.
Implementations§
Trait Implementations§
Source§impl From<ExprIf> for PackedContent
impl From<ExprIf> for PackedContent
Source§impl Lex for ExprIf
impl Lex for ExprIf
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 ExprIfwhere
N: ExternalCstNode,
impl<N> Migrate<N> for ExprIfwhere
N: ExternalCstNode,
Source§impl PrettyTree for ExprIf
impl PrettyTree for ExprIf
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 ExprIf
impl RefUnwindSafe for ExprIf
impl Send for ExprIf
impl Sync for ExprIf
impl Unpin for ExprIf
impl UnsafeUnpin for ExprIf
impl UnwindSafe for ExprIf
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