Struct esr::ast::statement::SwitchCase
source · pub struct SwitchCase<'ast> {
pub test: Option<ExpressionNode<'ast>>,
pub consequent: StatementList<'ast>,
}
Fields
test: Option<ExpressionNode<'ast>>
consequent: StatementList<'ast>
Trait Implementations
sourceimpl<'ast> Clone for SwitchCase<'ast>
impl<'ast> Clone for SwitchCase<'ast>
sourcefn clone(&self) -> SwitchCase<'ast>
fn clone(&self) -> SwitchCase<'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 SwitchCase<'ast>
impl<'ast> Debug for SwitchCase<'ast>
sourceimpl<'ast> PartialEq<SwitchCase<'ast>> for SwitchCase<'ast>
impl<'ast> PartialEq<SwitchCase<'ast>> for SwitchCase<'ast>
sourcefn eq(&self, other: &SwitchCase<'ast>) -> bool
fn eq(&self, other: &SwitchCase<'ast>) -> bool
impl<'ast> Copy for SwitchCase<'ast>
impl<'ast> StructuralPartialEq for SwitchCase<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for SwitchCase<'ast>
impl<'ast> Send for SwitchCase<'ast>
impl<'ast> !Sync for SwitchCase<'ast>
impl<'ast> Unpin for SwitchCase<'ast>
impl<'ast> UnwindSafe for SwitchCase<'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