Struct esr::ast::statement::SwitchStatement
source · pub struct SwitchStatement<'ast> {
pub discriminant: ExpressionNode<'ast>,
pub cases: BlockNode<'ast, SwitchCase<'ast>>,
}
Fields
discriminant: ExpressionNode<'ast>
cases: BlockNode<'ast, SwitchCase<'ast>>
Trait Implementations
sourceimpl<'ast> Clone for SwitchStatement<'ast>
impl<'ast> Clone for SwitchStatement<'ast>
sourcefn clone(&self) -> SwitchStatement<'ast>
fn clone(&self) -> SwitchStatement<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ast> Debug for SwitchStatement<'ast>
impl<'ast> Debug for SwitchStatement<'ast>
sourceimpl<'ast> From<SwitchStatement<'ast>> for Statement<'ast>
impl<'ast> From<SwitchStatement<'ast>> for Statement<'ast>
sourcefn from(val: SwitchStatement<'ast>) -> Self
fn from(val: SwitchStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<SwitchStatement<'ast>> for SwitchStatement<'ast>
impl<'ast> PartialEq<SwitchStatement<'ast>> for SwitchStatement<'ast>
sourcefn eq(&self, other: &SwitchStatement<'ast>) -> bool
fn eq(&self, other: &SwitchStatement<'ast>) -> bool
impl<'ast> Copy for SwitchStatement<'ast>
impl<'ast> StructuralPartialEq for SwitchStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for SwitchStatement<'ast>
impl<'ast> Send for SwitchStatement<'ast>
impl<'ast> !Sync for SwitchStatement<'ast>
impl<'ast> Unpin for SwitchStatement<'ast>
impl<'ast> UnwindSafe for SwitchStatement<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more