pub struct JsMethod {
pub name: Identifier,
pub params: Vec<Identifier>,
pub body: Vec<Stmt>,
}Expand description
JavaScript class method.
Fields§
§name: IdentifierMethod name
params: Vec<Identifier>Parameters
body: Vec<Stmt>Method body
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsMethod
impl<'de> Deserialize<'de> for JsMethod
Source§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
impl StructuralPartialEq for JsMethod
Auto Trait Implementations§
impl Freeze for JsMethod
impl RefUnwindSafe for JsMethod
impl Send for JsMethod
impl Sync for JsMethod
impl Unpin for JsMethod
impl UnsafeUnpin for JsMethod
impl UnwindSafe for JsMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more