pub struct Ast<'a> {
pub blocks: Vec<Block<'a>>,
}Expand description
Abstract syntax tree of a cooklang file
The AST is (mostly) borrowed from the input and offers location information of each element back to the source file.
Fields§
§blocks: Vec<Block<'a>>Trait Implementations§
Auto Trait Implementations§
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