Struct swc_ecma_ast::SwitchStmt
source · [−]pub struct SwitchStmt {
pub span: Span,
pub discriminant: Box<Expr>,
pub cases: Vec<SwitchCase>,
}
Fields
span: Span
discriminant: Box<Expr>
cases: Vec<SwitchCase>
Trait Implementations
sourceimpl Clone for SwitchStmt
impl Clone for SwitchStmt
sourcefn clone(&self) -> SwitchStmt
fn clone(&self) -> SwitchStmt
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 SwitchStmt
impl Debug for SwitchStmt
sourceimpl<'de> Deserialize<'de> for SwitchStmt
impl<'de> Deserialize<'de> for SwitchStmt
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 SwitchStmt
impl EqIgnoreSpan for SwitchStmt
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<SwitchStmt> for Stmt
impl From<SwitchStmt> for Stmt
sourcefn from(v: SwitchStmt) -> Self
fn from(v: SwitchStmt) -> Self
Converts to this type from the input type.
sourceimpl Hash for SwitchStmt
impl Hash for SwitchStmt
sourceimpl PartialEq<SwitchStmt> for SwitchStmt
impl PartialEq<SwitchStmt> for SwitchStmt
sourcefn eq(&self, other: &SwitchStmt) -> bool
fn eq(&self, other: &SwitchStmt) -> bool
sourceimpl Serialize for SwitchStmt
impl Serialize for SwitchStmt
sourceimpl Spanned for SwitchStmt
impl Spanned for SwitchStmt
impl Eq for SwitchStmt
impl StructuralEq for SwitchStmt
impl StructuralPartialEq for SwitchStmt
Auto Trait Implementations
impl RefUnwindSafe for SwitchStmt
impl Send for SwitchStmt
impl Sync for SwitchStmt
impl Unpin for SwitchStmt
impl UnwindSafe for SwitchStmt
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