pub struct Ast<'a> {
pub control: Vec<(&'a str, NodeValue<'a>)>,
pub metadata: Vec<(&'a str, NodeValue<'a>)>,
pub shapes: Option<ShapeSection<'a>>,
}Expand description
Abstract syntax tree for a Smithy file
Fields§
§control: Vec<(&'a str, NodeValue<'a>)>Control section of the file
metadata: Vec<(&'a str, NodeValue<'a>)>Metadata section of the file
shapes: Option<ShapeSection<'a>>Shapes defined within the file
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Ast<'a>
impl<'a> RefUnwindSafe for Ast<'a>
impl<'a> Send for Ast<'a>
impl<'a> Sync for Ast<'a>
impl<'a> Unpin for Ast<'a>
impl<'a> UnwindSafe for Ast<'a>
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