Struct move_lang::diagnostics::Diagnostics
source · pub struct Diagnostics { /* private fields */ }
Implementations§
source§impl Diagnostics
impl Diagnostics
pub fn new() -> Self
pub fn max_severity(&self) -> Option<Severity>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn add(&mut self, diag: Diagnostic)
pub fn extend(&mut self, other: Self)
pub fn into_vec(self) -> Vec<Diagnostic> ⓘ
pub fn into_codespan_format( self ) -> Vec<(Severity, &'static str, (Loc, String), Vec<(Loc, String)>)> ⓘ
Trait Implementations§
source§impl Clone for Diagnostics
impl Clone for Diagnostics
source§fn clone(&self) -> Diagnostics
fn clone(&self) -> Diagnostics
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 Diagnostics
impl Debug for Diagnostics
source§impl Default for Diagnostics
impl Default for Diagnostics
source§fn default() -> Diagnostics
fn default() -> Diagnostics
Returns the “default value” for a type. Read more
source§impl From<Vec<Diagnostic, Global>> for Diagnostics
impl From<Vec<Diagnostic, Global>> for Diagnostics
source§fn from(diagnostics: Vec<Diagnostic>) -> Self
fn from(diagnostics: Vec<Diagnostic>) -> Self
Converts to this type from the input type.
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 Diagnostics
impl Hash for Diagnostics
source§impl PartialEq<Diagnostics> for Diagnostics
impl PartialEq<Diagnostics> for Diagnostics
source§fn eq(&self, other: &Diagnostics) -> bool
fn eq(&self, other: &Diagnostics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Diagnostics
impl StructuralEq for Diagnostics
impl StructuralPartialEq for Diagnostics
Auto Trait Implementations§
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnwindSafe for Diagnostics
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.