Struct move_lang::diagnostics::Diagnostic
source · pub struct Diagnostic { /* private fields */ }
Implementations§
source§impl Diagnostic
impl Diagnostic
pub fn new( code: impl DiagnosticCode, (loc, label): (Loc, impl ToString), secondary_labels: impl IntoIterator<Item = (Loc, impl ToString)> ) -> Self
pub fn add_secondary_labels( &mut self, additional_labels: impl IntoIterator<Item = (Loc, impl ToString)> )
pub fn add_secondary_label(&mut self, (loc, msg): (Loc, impl ToString))
pub fn secondary_labels_len(&self) -> usize
Trait Implementations§
source§impl Clone for Diagnostic
impl Clone for Diagnostic
source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
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 Diagnostic
impl Debug for Diagnostic
source§impl FromIterator<Diagnostic> for Diagnostics
impl FromIterator<Diagnostic> for Diagnostics
source§fn from_iter<I: IntoIterator<Item = Diagnostic>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Diagnostic>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl Hash for Diagnostic
impl Hash for Diagnostic
source§impl PartialEq<Diagnostic> for Diagnostic
impl PartialEq<Diagnostic> for Diagnostic
source§fn eq(&self, other: &Diagnostic) -> bool
fn eq(&self, other: &Diagnostic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Diagnostic
impl StructuralEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations§
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.