pub struct Function {
pub name: Option<String>,
pub template_args: HashMap<String, Vec<TsType>>,
pub is_async: bool,
pub params: Vec<Param>,
pub returns: Vec<TsType>,
pub block: Vec<Statement>,
}
Fields§
§name: Option<String>
§template_args: HashMap<String, Vec<TsType>>
§is_async: bool
§params: Vec<Param>
§returns: Vec<TsType>
§block: Vec<Statement>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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