Struct swc_ecma_ast::ArrowExpr
source · [−]pub struct ArrowExpr {
pub span: Span,
pub params: Vec<Pat>,
pub body: BlockStmtOrExpr,
pub is_async: bool,
pub is_generator: bool,
pub type_params: Option<Box<TsTypeParamDecl>>,
pub return_type: Option<Box<TsTypeAnn>>,
}
Fields
span: Span
params: Vec<Pat>
body: BlockStmtOrExpr
is_async: bool
is_generator: bool
type_params: Option<Box<TsTypeParamDecl>>
return_type: Option<Box<TsTypeAnn>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ArrowExpr
impl<'de> Deserialize<'de> for ArrowExpr
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 ArrowExpr
impl EqIgnoreSpan for ArrowExpr
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for ArrowExpr
impl StructuralEq for ArrowExpr
impl StructuralPartialEq for ArrowExpr
Auto Trait Implementations
impl RefUnwindSafe for ArrowExpr
impl Send for ArrowExpr
impl Sync for ArrowExpr
impl Unpin for ArrowExpr
impl UnwindSafe for ArrowExpr
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