Struct swc_babel_ast::TSDeclareFunction [−][src]
pub struct TSDeclareFunction {
pub base: BaseNode,
pub id: Option<Identifier>,
pub type_parameters: Option<TSFuncDeclTypeParams>,
pub params: Vec<Param>,
pub return_type: Option<TSFuncDeclTypeAnnot>,
pub is_async: Option<bool>,
pub declare: Option<bool>,
pub generator: Option<bool>,
}
Fields
base: BaseNode
id: Option<Identifier>
type_parameters: Option<TSFuncDeclTypeParams>
params: Vec<Param>
return_type: Option<TSFuncDeclTypeAnnot>
is_async: Option<bool>
declare: Option<bool>
generator: Option<bool>
Trait Implementations
fn 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TSDeclareFunction
impl Send for TSDeclareFunction
impl Sync for TSDeclareFunction
impl Unpin for TSDeclareFunction
impl UnwindSafe for TSDeclareFunction
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more