pub struct DartFunction {
pub name: String,
pub return_type: DartType,
pub params: Vec<DartParam>,
pub body: Vec<DartStmt>,
pub is_async: bool,
pub is_static: bool,
pub is_abstract: bool,
pub type_params: Vec<String>,
pub doc: Option<String>,
}Expand description
A Dart top-level or class function/method.
Fields§
§name: String§return_type: DartType§params: Vec<DartParam>§body: Vec<DartStmt>§is_async: bool§is_static: bool§is_abstract: bool§type_params: Vec<String>§doc: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for DartFunction
impl Clone for DartFunction
Source§fn clone(&self) -> DartFunction
fn clone(&self) -> DartFunction
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 moreAuto Trait Implementations§
impl Freeze for DartFunction
impl RefUnwindSafe for DartFunction
impl Send for DartFunction
impl Sync for DartFunction
impl Unpin for DartFunction
impl UnsafeUnpin for DartFunction
impl UnwindSafe for DartFunction
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