pub struct ElseIfStatement {
pub elseif_keyword: Token,
pub condition: Pointer<Expression>,
pub then_keyword: Token,
pub body: Block,
}Expand description
A struct representing an elseif statement
Fields§
§elseif_keyword: TokenThe elseif keyword.
condition: Pointer<Expression>The condition for this statement.
then_keyword: TokenThe then keyword.
body: BlockThe body that’ll be executed if condition is truthy.
Trait Implementations§
Source§impl Clone for ElseIfStatement
impl Clone for ElseIfStatement
Source§fn clone(&self) -> ElseIfStatement
fn clone(&self) -> ElseIfStatement
Returns a duplicate 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 ElseIfStatement
impl Debug for ElseIfStatement
Source§impl GetRange for ElseIfStatement
impl GetRange for ElseIfStatement
Source§impl Hash for ElseIfStatement
impl Hash for ElseIfStatement
Source§impl Ord for ElseIfStatement
impl Ord for ElseIfStatement
Source§fn cmp(&self, other: &ElseIfStatement) -> Ordering
fn cmp(&self, other: &ElseIfStatement) -> 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 ElseIfStatement
impl Parse for ElseIfStatement
Source§impl PartialEq for ElseIfStatement
impl PartialEq for ElseIfStatement
Source§impl PartialOrd for ElseIfStatement
impl PartialOrd for ElseIfStatement
Source§impl Print for ElseIfStatement
impl Print for ElseIfStatement
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
Source§impl TryParse for ElseIfStatement
impl TryParse for ElseIfStatement
impl Eq for ElseIfStatement
impl StructuralPartialEq for ElseIfStatement
Auto Trait Implementations§
impl Freeze for ElseIfStatement
impl RefUnwindSafe for ElseIfStatement
impl !Send for ElseIfStatement
impl !Sync for ElseIfStatement
impl Unpin for ElseIfStatement
impl UnwindSafe for ElseIfStatement
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