pub struct File<T> {
pub attributes: Vec<T>,
pub doc: Option<Doc>,
pub imports: Vec<Import>,
pub modules: Vec<Module>,
pub items: Vec<Item<T>>,
}
Fields§
§attributes: Vec<T>
§doc: Option<Doc>
§imports: Vec<Import>
§modules: Vec<Module>
§items: Vec<Item<T>>
Code that is before function and class declarations
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for File<T>
impl<T> RefUnwindSafe for File<T>where
T: RefUnwindSafe,
impl<T> !Send for File<T>
impl<T> !Sync for File<T>
impl<T> Unpin for File<T>where
T: Unpin,
impl<T> UnwindSafe for File<T>where
T: UnwindSafe,
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