Struct swc_ecma_ast::SwitchCase
source · [−]Fields
span: Span
test: Option<Box<Expr>>
None for default:
cons: Vec<Stmt>
Trait Implementations
sourceimpl Clone for SwitchCase
impl Clone for SwitchCase
sourcefn clone(&self) -> SwitchCase
fn clone(&self) -> SwitchCase
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 Debug for SwitchCase
impl Debug for SwitchCase
sourceimpl<'de> Deserialize<'de> for SwitchCase
impl<'de> Deserialize<'de> for SwitchCase
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for SwitchCase
impl EqIgnoreSpan for SwitchCase
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl Hash for SwitchCase
impl Hash for SwitchCase
sourceimpl PartialEq<SwitchCase> for SwitchCase
impl PartialEq<SwitchCase> for SwitchCase
sourcefn eq(&self, other: &SwitchCase) -> bool
fn eq(&self, other: &SwitchCase) -> bool
sourceimpl Serialize for SwitchCase
impl Serialize for SwitchCase
sourceimpl Spanned for SwitchCase
impl Spanned for SwitchCase
sourceimpl Take for SwitchCase
impl Take for SwitchCase
impl Eq for SwitchCase
impl StructuralEq for SwitchCase
impl StructuralPartialEq for SwitchCase
Auto Trait Implementations
impl RefUnwindSafe for SwitchCase
impl Send for SwitchCase
impl Sync for SwitchCase
impl Unpin for SwitchCase
impl UnwindSafe for SwitchCase
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