pub struct ExpressionSwitchStatement<'tree> {
pub span: Span,
pub initializer: Option<SimpleStatement<'tree>>,
pub value: Option<Expression<'tree>>,
pub children: Vec<ExpressionSwitchStatementChildren<'tree>>,
}Fields§
§span: Span§initializer: Option<SimpleStatement<'tree>>§value: Option<Expression<'tree>>§children: Vec<ExpressionSwitchStatementChildren<'tree>>Trait Implementations§
Source§impl<'tree> Clone for ExpressionSwitchStatement<'tree>
impl<'tree> Clone for ExpressionSwitchStatement<'tree>
Source§fn clone(&self) -> ExpressionSwitchStatement<'tree>
fn clone(&self) -> ExpressionSwitchStatement<'tree>
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<'tree> Debug for ExpressionSwitchStatement<'tree>
impl<'tree> Debug for ExpressionSwitchStatement<'tree>
Source§impl<'tree> FromNode<'tree> for ExpressionSwitchStatement<'tree>
impl<'tree> FromNode<'tree> for ExpressionSwitchStatement<'tree>
Source§impl<'tree> PartialEq for ExpressionSwitchStatement<'tree>
impl<'tree> PartialEq for ExpressionSwitchStatement<'tree>
Source§fn eq(&self, other: &ExpressionSwitchStatement<'tree>) -> bool
fn eq(&self, other: &ExpressionSwitchStatement<'tree>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Spanned for ExpressionSwitchStatement<'_>
impl Spanned for ExpressionSwitchStatement<'_>
impl<'tree> Eq for ExpressionSwitchStatement<'tree>
impl<'tree> StructuralPartialEq for ExpressionSwitchStatement<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for ExpressionSwitchStatement<'tree>
impl<'tree> RefUnwindSafe for ExpressionSwitchStatement<'tree>
impl<'tree> Send for ExpressionSwitchStatement<'tree>
impl<'tree> Sync for ExpressionSwitchStatement<'tree>
impl<'tree> Unpin for ExpressionSwitchStatement<'tree>
impl<'tree> UnsafeUnpin for ExpressionSwitchStatement<'tree>
impl<'tree> UnwindSafe for ExpressionSwitchStatement<'tree>
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