Struct docs::ast::IfExpression
source · pub struct IfExpression {
pub token: Token,
pub condition: Box<Expression>,
pub consequence: BlockStatement,
pub alternative: Option<BlockStatement>,
}Fields§
§token: Token§condition: Box<Expression>§consequence: BlockStatement§alternative: Option<BlockStatement>Trait Implementations§
source§impl Clone for IfExpression
impl Clone for IfExpression
source§fn clone(&self) -> IfExpression
fn clone(&self) -> IfExpression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IfExpression
impl Debug for IfExpression
source§impl Nodetrait for IfExpression
impl Nodetrait for IfExpression
source§impl PartialEq for IfExpression
impl PartialEq for IfExpression
source§fn eq(&self, other: &IfExpression) -> bool
fn eq(&self, other: &IfExpression) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IfExpression
Auto Trait Implementations§
impl Freeze for IfExpression
impl RefUnwindSafe for IfExpression
impl Send for IfExpression
impl Sync for IfExpression
impl Unpin for IfExpression
impl UnwindSafe for IfExpression
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