Struct swc_babel_ast::ObjectMethod [−][src]
pub struct ObjectMethod {
pub base: BaseNode,
pub kind: ObjectMethodKind,
pub key: ObjectKey,
pub params: Vec<Param>,
pub body: BlockStatement,
pub computed: bool,
pub generator: Option<bool>,
pub is_async: Option<bool>,
pub decorator: Option<Vec<Decorator>>,
pub return_type: Option<Box<TypeAnnotOrNoop>>,
pub type_parameters: Option<TypeParamDeclOrNoop>,
}
Fields
base: BaseNode
kind: ObjectMethodKind
key: ObjectKey
params: Vec<Param>
body: BlockStatement
computed: bool
generator: Option<bool>
is_async: Option<bool>
decorator: Option<Vec<Decorator>>
return_type: Option<Box<TypeAnnotOrNoop>>
type_parameters: Option<TypeParamDeclOrNoop>
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 ObjectMethod
impl Send for ObjectMethod
impl Sync for ObjectMethod
impl Unpin for ObjectMethod
impl UnwindSafe for ObjectMethod
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