pub struct DartModule {
pub imports: Vec<DartImport>,
pub exports: Vec<String>,
pub classes: Vec<DartClass>,
pub functions: Vec<DartFunction>,
pub globals: Vec<(DartType, String, DartExpr)>,
pub part_of: Option<String>,
}Expand description
A Dart file/module (compilation unit).
Fields§
§imports: Vec<DartImport>§exports: Vec<String>§classes: Vec<DartClass>§functions: Vec<DartFunction>§globals: Vec<(DartType, String, DartExpr)>§part_of: Option<String>Implementations§
Source§impl DartModule
impl DartModule
Trait Implementations§
Source§impl Clone for DartModule
impl Clone for DartModule
Source§fn clone(&self) -> DartModule
fn clone(&self) -> DartModule
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 DartModule
impl Debug for DartModule
Auto Trait Implementations§
impl Freeze for DartModule
impl RefUnwindSafe for DartModule
impl Send for DartModule
impl Sync for DartModule
impl Unpin for DartModule
impl UnsafeUnpin for DartModule
impl UnwindSafe for DartModule
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