pub struct EmitOutput {
pub code: String,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The recovered emitter product: printed text plus ordered diagnostics.
Fields§
§code: StringThe printed program text.
diagnostics: Vec<Diagnostic>Diagnostics in canonical Diagnostic order.
Implementations§
Source§impl EmitOutput
impl EmitOutput
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns whether any diagnostic is an error.
Trait Implementations§
Source§impl Clone for EmitOutput
impl Clone for EmitOutput
Source§fn clone(&self) -> EmitOutput
fn clone(&self) -> EmitOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmitOutput
impl Debug for EmitOutput
impl Eq for EmitOutput
Source§impl PartialEq for EmitOutput
impl PartialEq for EmitOutput
impl StructuralPartialEq for EmitOutput
Auto Trait Implementations§
impl Freeze for EmitOutput
impl RefUnwindSafe for EmitOutput
impl Send for EmitOutput
impl Sync for EmitOutput
impl Unpin for EmitOutput
impl UnsafeUnpin for EmitOutput
impl UnwindSafe for EmitOutput
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