Struct swc_ecma_ast::IfStmt
source · [−]pub struct IfStmt {
pub span: Span,
pub test: Box<Expr>,
pub cons: Box<Stmt>,
pub alt: Option<Box<Stmt>>,
}
Fields
span: Span
test: Box<Expr>
cons: Box<Stmt>
alt: Option<Box<Stmt>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for IfStmt
impl<'de> Deserialize<'de> for IfStmt
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 IfStmt
impl EqIgnoreSpan for IfStmt
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for IfStmt
impl StructuralEq for IfStmt
impl StructuralPartialEq for IfStmt
Auto Trait Implementations
impl RefUnwindSafe for IfStmt
impl Send for IfStmt
impl Sync for IfStmt
impl Unpin for IfStmt
impl UnwindSafe for IfStmt
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