#[non_exhaustive]pub struct Compilation {
pub sources: SourceMap,
pub schema: Schema,
pub ir: Ir,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of a full front-end run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sources: SourceMapAll source files, needed to render diagnostics.
schema: SchemaThe resolved schema.
ir: IrTyped queries; queries with errors are not included.
diagnostics: Vec<Diagnostic>Errors and warnings, in file order.
Implementations§
Source§impl Compilation
impl Compilation
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether any diagnostic is an error.
Trait Implementations§
Source§impl Clone for Compilation
impl Clone for Compilation
Auto Trait Implementations§
impl Freeze for Compilation
impl RefUnwindSafe for Compilation
impl Send for Compilation
impl Sync for Compilation
impl Unpin for Compilation
impl UnsafeUnpin for Compilation
impl UnwindSafe for Compilation
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