pub struct ElseIfExpression {
pub else_if_keyword: Token,
pub condition: Pointer<Expression>,
pub then_keyword: Token,
pub expression: Pointer<Expression>,
}Expand description
A struct representing an elseif expression, only exists in expressions.
Fields§
§else_if_keyword: TokenThe elseif keyword.
condition: Pointer<Expression>The condition after the elseif.
then_keyword: TokenThe then keyword after the condition.
expression: Pointer<Expression>The expression that this statement would resolve to if the
condition evaluated to true.
Trait Implementations§
Source§impl Clone for ElseIfExpression
impl Clone for ElseIfExpression
Source§fn clone(&self) -> ElseIfExpression
fn clone(&self) -> ElseIfExpression
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 ElseIfExpression
impl Debug for ElseIfExpression
Source§impl GetRange for ElseIfExpression
impl GetRange for ElseIfExpression
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Hash for ElseIfExpression
impl Hash for ElseIfExpression
Source§impl Ord for ElseIfExpression
impl Ord for ElseIfExpression
Source§fn cmp(&self, other: &ElseIfExpression) -> Ordering
fn cmp(&self, other: &ElseIfExpression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for ElseIfExpression
impl Parse for ElseIfExpression
Source§impl PartialEq for ElseIfExpression
impl PartialEq for ElseIfExpression
Source§impl PartialOrd for ElseIfExpression
impl PartialOrd for ElseIfExpression
Source§impl Print for ElseIfExpression
impl Print for ElseIfExpression
impl Eq for ElseIfExpression
impl StructuralPartialEq for ElseIfExpression
Auto Trait Implementations§
impl Freeze for ElseIfExpression
impl RefUnwindSafe for ElseIfExpression
impl !Send for ElseIfExpression
impl !Sync for ElseIfExpression
impl Unpin for ElseIfExpression
impl UnwindSafe for ElseIfExpression
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