Struct esr::ast::statement::IfStatement
source · pub struct IfStatement<'ast> {
pub test: ExpressionNode<'ast>,
pub consequent: StatementNode<'ast>,
pub alternate: Option<StatementNode<'ast>>,
}
Fields
test: ExpressionNode<'ast>
consequent: StatementNode<'ast>
alternate: Option<StatementNode<'ast>>
Trait Implementations
sourceimpl<'ast> Clone for IfStatement<'ast>
impl<'ast> Clone for IfStatement<'ast>
sourcefn clone(&self) -> IfStatement<'ast>
fn clone(&self) -> IfStatement<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ast> Debug for IfStatement<'ast>
impl<'ast> Debug for IfStatement<'ast>
sourceimpl<'ast> From<IfStatement<'ast>> for Statement<'ast>
impl<'ast> From<IfStatement<'ast>> for Statement<'ast>
sourcefn from(val: IfStatement<'ast>) -> Self
fn from(val: IfStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<IfStatement<'ast>> for IfStatement<'ast>
impl<'ast> PartialEq<IfStatement<'ast>> for IfStatement<'ast>
sourcefn eq(&self, other: &IfStatement<'ast>) -> bool
fn eq(&self, other: &IfStatement<'ast>) -> bool
impl<'ast> Copy for IfStatement<'ast>
impl<'ast> StructuralPartialEq for IfStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for IfStatement<'ast>
impl<'ast> Send for IfStatement<'ast>
impl<'ast> !Sync for IfStatement<'ast>
impl<'ast> Unpin for IfStatement<'ast>
impl<'ast> UnwindSafe for IfStatement<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more