Struct swc_estree_ast::IfStatement
source · [−]pub struct IfStatement {
pub base: BaseNode,
pub test: Box<Expression>,
pub consequent: Box<Statement>,
pub alternate: Option<Box<Statement>>,
}
Fields
base: BaseNode
test: Box<Expression>
consequent: Box<Statement>
alternate: Option<Box<Statement>>
Trait Implementations
sourceimpl Clone for IfStatement
impl Clone for IfStatement
sourcefn clone(&self) -> IfStatement
fn clone(&self) -> IfStatement
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 IfStatement
impl Debug for IfStatement
sourceimpl<'de> Deserialize<'de> for IfStatement
impl<'de> Deserialize<'de> for IfStatement
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 PartialEq<IfStatement> for IfStatement
impl PartialEq<IfStatement> for IfStatement
sourcefn eq(&self, other: &IfStatement) -> bool
fn eq(&self, other: &IfStatement) -> bool
sourceimpl Serialize for IfStatement
impl Serialize for IfStatement
impl StructuralPartialEq for IfStatement
Auto Trait Implementations
impl RefUnwindSafe for IfStatement
impl Send for IfStatement
impl Sync for IfStatement
impl Unpin for IfStatement
impl UnwindSafe for IfStatement
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