Struct move_compiler::diagnostics::Diagnostics  
source · [−]pub struct Diagnostics { /* private fields */ }Implementations
sourceimpl 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 add_opt(&mut self, diag_opt: Option<Diagnostic>)
pub fn extend(&mut self, other: Self)
pub fn into_vec(self) -> Vec<Diagnostic>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
pub fn into_codespan_format(
    self
) -> Vec<(Severity, &'static str, (Loc, String), Vec<(Loc, String)>, Vec<String>)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator, 
A: Allocator,
Trait Implementations
sourceimpl Clone for Diagnostics
 
impl Clone for Diagnostics
sourcefn clone(&self) -> Diagnostics
 
fn clone(&self) -> Diagnostics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Diagnostics
 
impl Debug for Diagnostics
sourceimpl Default for Diagnostics
 
impl Default for Diagnostics
sourcefn default() -> Diagnostics
 
fn default() -> Diagnostics
Returns the “default value” for a type. Read more
sourceimpl From<Option<Diagnostic>> for Diagnostics
 
impl From<Option<Diagnostic>> for Diagnostics
sourcefn from(diagnostic_opt: Option<Diagnostic>) -> Self
 
fn from(diagnostic_opt: Option<Diagnostic>) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<Diagnostic, Global>> for Diagnostics
 
impl From<Vec<Diagnostic, Global>> for Diagnostics
sourcefn from(diagnostics: Vec<Diagnostic>) -> Self
 
fn from(diagnostics: Vec<Diagnostic>) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<Diagnostic> for Diagnostics
 
impl FromIterator<Diagnostic> for Diagnostics
sourcefn 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
sourceimpl Hash for Diagnostics
 
impl Hash for Diagnostics
sourceimpl PartialEq<Diagnostics> for Diagnostics
 
impl PartialEq<Diagnostics> for Diagnostics
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &Diagnostics) -> bool
 
fn ne(&self, other: &Diagnostics) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
 
impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.