Struct project2::DiagnosticSummary
source · pub struct DiagnosticSummary {
pub error_count: usize,
pub warning_count: usize,
}
Fields§
§error_count: usize
§warning_count: usize
Implementations§
source§impl DiagnosticSummary
impl DiagnosticSummary
pub fn is_empty(&self) -> bool
pub fn to_proto( &self, language_server_id: LanguageServerId, path: &Path ) -> DiagnosticSummary
Trait Implementations§
source§impl Clone for DiagnosticSummary
impl Clone for DiagnosticSummary
source§fn clone(&self) -> DiagnosticSummary
fn clone(&self) -> DiagnosticSummary
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 DiagnosticSummary
impl Debug for DiagnosticSummary
source§impl Default for DiagnosticSummary
impl Default for DiagnosticSummary
source§fn default() -> DiagnosticSummary
fn default() -> DiagnosticSummary
Returns the “default value” for a type. Read more
source§impl PartialEq<DiagnosticSummary> for DiagnosticSummary
impl PartialEq<DiagnosticSummary> for DiagnosticSummary
source§fn eq(&self, other: &DiagnosticSummary) -> bool
fn eq(&self, other: &DiagnosticSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DiagnosticSummary
impl Serialize for DiagnosticSummary
impl Copy for DiagnosticSummary
impl StructuralPartialEq for DiagnosticSummary
Auto Trait Implementations§
impl RefUnwindSafe for DiagnosticSummary
impl Send for DiagnosticSummary
impl Sync for DiagnosticSummary
impl Unpin for DiagnosticSummary
impl UnwindSafe for DiagnosticSummary
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.