pub struct TsClassMethod {
pub name: String,
pub params: Vec<TsParam>,
pub return_type: TsType,
pub body: Vec<TsStmt>,
pub is_async: bool,
pub is_static: bool,
pub is_private: bool,
pub is_getter: bool,
pub is_setter: bool,
}Expand description
A method in a TypeScript class.
Fields§
§name: String§params: Vec<TsParam>§return_type: TsType§body: Vec<TsStmt>§is_async: bool§is_static: bool§is_private: bool§is_getter: bool§is_setter: boolTrait Implementations§
Source§impl Clone for TsClassMethod
impl Clone for TsClassMethod
Source§fn clone(&self) -> TsClassMethod
fn clone(&self) -> TsClassMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TsClassMethod
impl Debug for TsClassMethod
Auto Trait Implementations§
impl Freeze for TsClassMethod
impl RefUnwindSafe for TsClassMethod
impl Send for TsClassMethod
impl Sync for TsClassMethod
impl Unpin for TsClassMethod
impl UnsafeUnpin for TsClassMethod
impl UnwindSafe for TsClassMethod
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