pub struct Ast<'src> {
pub items: Vec<Item<'src>>,
pub unstable_features: BTreeSet<UnstableFeature>,
pub warnings: Vec<Warning>,
pub working_directory: PathBuf,
}
Expand description
The top-level type produced by the parser. Not all successful parses result
in valid justfiles, so additional consistency checks and name resolution
are performed by the Analyzer
, which produces a Justfile
from an Ast
.
Fieldsยง
ยงitems: Vec<Item<'src>>
ยงunstable_features: BTreeSet<UnstableFeature>
ยงwarnings: Vec<Warning>
ยงworking_directory: PathBuf
Trait Implementationsยง
Auto Trait Implementationsยง
impl<'src> Freeze for Ast<'src>
impl<'src> RefUnwindSafe for Ast<'src>
impl<'src> Send for Ast<'src>
impl<'src> Sync for Ast<'src>
impl<'src> Unpin for Ast<'src>
impl<'src> UnwindSafe for Ast<'src>
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