pub struct ElseStatement {
pub else_keyword: Token,
pub body: Block,
}Expand description
A struct representing an else statement
Fields§
§else_keyword: TokenThe else keyword.
body: BlockThe body of the else statement.
Trait Implementations§
Source§impl Clone for ElseStatement
impl Clone for ElseStatement
Source§fn clone(&self) -> ElseStatement
fn clone(&self) -> ElseStatement
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 ElseStatement
impl Debug for ElseStatement
Source§impl GetRange for ElseStatement
impl GetRange for ElseStatement
Source§impl Hash for ElseStatement
impl Hash for ElseStatement
Source§impl Ord for ElseStatement
impl Ord for ElseStatement
Source§fn cmp(&self, other: &ElseStatement) -> Ordering
fn cmp(&self, other: &ElseStatement) -> 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 ElseStatement
impl Parse for ElseStatement
Source§impl PartialEq for ElseStatement
impl PartialEq for ElseStatement
Source§impl PartialOrd for ElseStatement
impl PartialOrd for ElseStatement
Source§impl Print for ElseStatement
impl Print for ElseStatement
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 ElseStatement
impl TryParse for ElseStatement
impl Eq for ElseStatement
impl StructuralPartialEq for ElseStatement
Auto Trait Implementations§
impl Freeze for ElseStatement
impl RefUnwindSafe for ElseStatement
impl !Send for ElseStatement
impl !Sync for ElseStatement
impl Unpin for ElseStatement
impl UnwindSafe for ElseStatement
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