pub struct Root {
pub contract_name: String,
pub span: Span,
pub children: Vec<Ast>,
}Expand description
The root node of the AST.
Fields§
§contract_name: StringThe name that is used for the emitted contract.
span: SpanThe span that encompasses this node. It includes all of its children.
children: Vec<Ast>The children AST nodes of this node.
Trait Implementations§
impl Eq for Root
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl Freeze for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnwindSafe for Root
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