Struct apollo_compiler::diagnostics::ApolloDiagnostic
source · pub struct ApolloDiagnostic {
pub location: DiagnosticLocation,
pub labels: Vec<Label>,
pub help: Option<String>,
pub data: Box<DiagnosticData>,
/* private fields */
}
Fields§
§location: DiagnosticLocation
§labels: Vec<Label>
§help: Option<String>
§data: Box<DiagnosticData>
Implementations§
source§impl ApolloDiagnostic
impl ApolloDiagnostic
pub fn to_report(&self) -> Report<'static, DiagnosticLocation>
Trait Implementations§
source§impl Clone for ApolloDiagnostic
impl Clone for ApolloDiagnostic
source§fn clone(&self) -> ApolloDiagnostic
fn clone(&self) -> ApolloDiagnostic
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 ApolloDiagnostic
impl Debug for ApolloDiagnostic
source§impl Display for ApolloDiagnostic
impl Display for ApolloDiagnostic
source§impl Error for ApolloDiagnostic
impl Error for ApolloDiagnostic
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 PartialEq<ApolloDiagnostic> for ApolloDiagnostic
impl PartialEq<ApolloDiagnostic> for ApolloDiagnostic
source§fn eq(&self, other: &ApolloDiagnostic) -> bool
fn eq(&self, other: &ApolloDiagnostic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ApolloDiagnostic
impl StructuralEq for ApolloDiagnostic
impl StructuralPartialEq for ApolloDiagnostic
Auto Trait Implementations§
impl RefUnwindSafe for ApolloDiagnostic
impl Send for ApolloDiagnostic
impl Sync for ApolloDiagnostic
impl Unpin for ApolloDiagnostic
impl UnwindSafe for ApolloDiagnostic
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.