pub struct Parsed {
pub unit: TranslationUnit,
pub files: SourceFiles,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of a parse.
Fields§
§unit: TranslationUnitThe syntax tree. After errors it holds every item that parsed.
files: SourceFilesThe main file, every included file and one <define NAME> file for each
predefined macro, for diagnostics and spans.
diagnostics: Vec<Diagnostic>Errors and warnings in source order of discovery.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Parsed
impl Freeze for Parsedwhere
*const u8 is !null: Freeze,
PhantomData<Item>: Freeze,
PhantomData<SourceFile>: Freeze,
PhantomData<Diagnostic>: Freeze,
impl Move for Parsed
impl RefUnwindSafe for Parsed
impl Send for Parsed
impl Sync for Parsed
impl Unpin for Parsed
impl UnsafeUnpin for Parsedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<SourceFile>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
impl UnwindSafe for Parsedwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<TypeRef>: UnwindSafe,
BoxRaw<Stmt>: UnwindSafe,
BoxRaw<StructDef>: UnwindSafe,
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