pub struct File {
pub attrs: Vec<Attribute>,
pub items: Vec<Item>,
}
Expand description
A Solidity file. The root of the AST.
Fields§
§attrs: Vec<Attribute>
The inner attributes of the file.
items: Vec<Item>
The items in the file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl !Send for File
impl !Sync for File
impl Unpin for File
impl UnwindSafe for File
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