Struct apollo_compiler::validation::DiagnosticData
source · pub struct DiagnosticData { /* private fields */ }Trait Implementations§
source§impl Clone for DiagnosticData
impl Clone for DiagnosticData
source§fn clone(&self) -> DiagnosticData
fn clone(&self) -> DiagnosticData
Returns a copy of the value. Read more
1.0.0 · 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 DiagnosticData
impl Debug for DiagnosticData
source§impl Display for DiagnosticData
impl Display for DiagnosticData
source§impl Error for DiagnosticData
impl Error for DiagnosticData
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl ToCliReport for DiagnosticData
impl ToCliReport for DiagnosticData
source§fn location(&self) -> Option<NodeLocation>
fn location(&self) -> Option<NodeLocation>
Return the main location for this error. May be
None if a location doesn’t make sense for
the particular error.source§fn report(&self, report: &mut CliReport<'_>)
fn report(&self, report: &mut CliReport<'_>)
Fill in the report with source code labels. Read more
fn to_report<'s>(&self, sources: &'s SourceMap, color: Color) -> CliReport<'s>
source§fn to_diagnostic<'s>(&'s self, sources: &'s SourceMap) -> Diagnostic<'s, Self>where
Self: Sized,
fn to_diagnostic<'s>(&'s self, sources: &'s SourceMap) -> Diagnostic<'s, Self>where
Self: Sized,
Bundle this error together with a source map into a
Diagnostic Read moreAuto Trait Implementations§
impl RefUnwindSafe for DiagnosticData
impl Send for DiagnosticData
impl Sync for DiagnosticData
impl Unpin for DiagnosticData
impl UnwindSafe for DiagnosticData
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