pub struct TsFunction {
pub name: String,
pub params: Vec<TsParam>,
pub return_type: TsType,
pub body: Vec<TsStmt>,
pub is_async: bool,
pub type_params: Vec<String>,
pub is_exported: bool,
}Expand description
A top-level TypeScript function declaration.
Fields§
§name: String§params: Vec<TsParam>§return_type: TsType§body: Vec<TsStmt>§is_async: bool§type_params: Vec<String>§is_exported: boolTrait Implementations§
Source§impl Clone for TsFunction
impl Clone for TsFunction
Source§fn clone(&self) -> TsFunction
fn clone(&self) -> TsFunction
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 TsFunction
impl Debug for TsFunction
Auto Trait Implementations§
impl Freeze for TsFunction
impl RefUnwindSafe for TsFunction
impl Send for TsFunction
impl Sync for TsFunction
impl Unpin for TsFunction
impl UnsafeUnpin for TsFunction
impl UnwindSafe for TsFunction
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